HowTo Create SSH Keys

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