HowTo Create SSH Keys

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