HowTo Create SSH Keys

[crayon-6a52a1c34c7d9012390796/] You can press enter here, saving the file to the user home (in this case, my example user is called demo). [crayon-6a52a1c34c7df209823152/] Press enter if you want a password-less key or type your password: [crayon-6a52a1c34c7e1391853628/]   Copy you ssh key to your VPS (non-root user): It will ask for your password [crayon-6a52a1c34c7e3390999966/]   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-6a52a1c34c7e4969577697/] Step 2: [crayon-6a52a1c34c7e5083034554/] Step 3 (optional): if the .ssh directory doesn't exist, create it [crayon-6a52a1c34c7e7102503849/] Step 4: Paste your public key (ex. id_rsa.pub) in authorized_keys [crayon-6a52a1c34c7e8321791570/]  
Read More