HowTo Create SSH Keys

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