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