Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.