HowTo Create SSH Keys

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