Created
February 20, 2018 22:24
-
-
Save tstachl/bd5785b1c556865b07fdc618b18a47a1 to your computer and use it in GitHub Desktop.
Steps to set up SSH keys for a newly created user account on my VPS.
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
# create the directory for ssh | |
mkdir -p ~/.ssh | |
# make sure it's editable only for the current user | |
chmod 700 ~/.ssh | |
# create the authorized keys file | |
touch ~/.ssh/authorized_keys | |
# use your favorite editor to add the public key | |
vim ~/.ssh/authorized_keys | |
# set the right access permissions | |
chmod 600 ~/.ssh/authorized_keys |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment