Created
August 14, 2018 21:51
-
-
Save carlynorama/2e89fbe80889a3276c2238819c9280ab to your computer and use it in GitHub Desktop.
RSA SSH Key Reminder Crib Sheet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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