Last active
May 10, 2021 10:49
-
-
Save nyrahul/8028eca626c0a9d01c6526083f2d54f4 to your computer and use it in GitHub Desktop.
ssh password less login: Add my pub key to .ssh/authorized_keys
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
# 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