HowTo Create SSH Keys
[crayon-693d0ec088f3e957325876/] You can press enter here, saving the file to the user home (in this case, my example user is called demo). [crayon-693d0ec088f44465107518/] Press enter if you want a password-less key or type your password: [crayon-693d0ec088f45758167993/] Copy you ssh key to your VPS (non-root user): It will ask for your password [crayon-693d0ec088f47648017995/] Copy you ssh key to your VPS (root user): Login with your non-root user, become root (sudo su) and copy/paste your ssh public key (ex. id_rsa.pub) in /root/.ssh/authorized_keys. Step 1: [crayon-693d0ec088f48442783289/] Step 2: [crayon-693d0ec088f49908333405/] Step 3 (optional): if the .ssh directory doesn't exist, create it [crayon-693d0ec088f4b827203949/] Step 4: Paste your public key (ex. id_rsa.pub) in authorized_keys [crayon-693d0ec088f4c570310448/]
