Created
August 17, 2018 02:18
-
-
Save LeandroFranciscato/f46caabdf744709ce4541f1eb29aafbe to your computer and use it in GitHub Desktop.
SImple way to generate a ssh key between server and client
This file contains hidden or 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
# Every action mus happen from client-side command line | |
ssh-keygen -t rsa | |
ssh serverUser@serverIP mkdir -p .ssh | |
cat ~/.ssh/id_rsa.pub | ssh serverUser@serverIP 'cat >> .ssh/authorized_keys' | |
ssh-add | |
# finally | |
ssh serverUser@serverIP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment