HowTo Create SSH Keys
[crayon-68b21d78f19bb897699763/] You can press enter here, saving the file to the user home (in this case, my example user is called demo). [crayon-68b21d78f19c1684961934/] Press enter if you want a password-less key or type your password: [crayon-68b21d78f19c2268706693/] Copy you ssh key to your VPS (non-root user): It will ask for your password [crayon-68b21d78f19c4790221792/] 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-68b21d78f19c5204251941/] Step 2: [crayon-68b21d78f19c7088276905/] Step 3 (optional): if the .ssh directory doesn't exist, create it [crayon-68b21d78f19c8033890227/] Step 4: Paste your public key (ex. id_rsa.pub) in authorized_keys [crayon-68b21d78f19c9348272022/]