Skip to content

Instantly share code, notes, and snippets.

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/ | ssh serverUser@serverIP 'cat >> .ssh/authorized_keys'
# 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.