HowTo Create SSH Keys

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