Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Beyarz
Last active July 28, 2023 12:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Beyarz/3956fde864b5f254f24a16c3b547f0eb to your computer and use it in GitHub Desktop.
Save Beyarz/3956fde864b5f254f24a16c3b547f0eb to your computer and use it in GitHub Desktop.
Ssh key

SSH

Create key

ssh-keygen -t rsa -b 4096 -C "user@email.com"

Get public key

cat /Users/NAME/.ssh/id_rsa.pub

Get private key

cat /Users/NAME/.ssh/id_rsa

Required to enter passphrase after every git pull?

ssh-add ~/.ssh/id_rsa

ssh-copy-id

Sign in without having to enter your password in the future
ssh-copy-id user@host

Add public-key to keyring

ssh-add -K

Test password

ssh-keygen -y

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment