Skip to content

Instantly share code, notes, and snippets.

@LeandroFranciscato
Created August 17, 2018 02:18
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 LeandroFranciscato/f46caabdf744709ce4541f1eb29aafbe to your computer and use it in GitHub Desktop.
Save LeandroFranciscato/f46caabdf744709ce4541f1eb29aafbe to your computer and use it in GitHub Desktop.
SImple way to generate a ssh key between server and client
# 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