Skip to content

Instantly share code, notes, and snippets.

@nyrahul
Last active May 10, 2021 10:49
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 nyrahul/8028eca626c0a9d01c6526083f2d54f4 to your computer and use it in GitHub Desktop.
Save nyrahul/8028eca626c0a9d01c6526083f2d54f4 to your computer and use it in GitHub Desktop.
ssh password less login: Add my pub key to .ssh/authorized_keys
# Generate ssh keys
ssh-keygen -t rsa
# Add my pub key as an authorized key on the remote host rahul@vbox20
cat ~/.ssh/id_rsa.pub | ssh rahul@vbox20 'mkdir -p .ssh && cat >> .ssh/authorized_keys'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment