You are here:
< Back

You can press enter here, saving the file to the user home (in this case, my example user is called demo).

Press enter if you want a password-less key or type your password:

 

Copy you ssh key to your VPS (non-root user):

It will ask for your password

 

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:

Step 2:

Step 3 (optional):

if the .ssh directory doesn’t exist, create it

Step 4:

Paste your public key (ex. id_rsa.pub) in authorized_keys

 

Tags: