Skip to content

Instantly share code, notes, and snippets.

@carlynorama
Created August 14, 2018 21:51
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 carlynorama/2e89fbe80889a3276c2238819c9280ab to your computer and use it in GitHub Desktop.
Save carlynorama/2e89fbe80889a3276c2238819c9280ab to your computer and use it in GitHub Desktop.
RSA SSH Key Reminder Crib Sheet
ssh-keygen -t rsa
#Enter file in which to save the key (/Users/$YOUR_USER_NAME/.ssh/id_rsa): $NAME_TO_USE
#Option 1, no sever exists yet
cat /Users/$YOUR_USER_NAME/.ssh/$NAME_TO_USE.pub
#copy paste that into wherever
sudo nano ~/.ssh/config
# Add host information into file
Host $HOST_SHORTCUT_NAME
Hostname $IP.ADD.ER.ESS
Port 22
User root
IdentityFile ~/.ssh/$NAME_TO_USE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment