Setup SSH Keys

Step One—Create the RSA Key Pair
The first step is to create the key pair on the client machine (there is a good chance that this will just be your computer):

ssh-keygen -t rsa

Step Two—Store the Keys and Passphrase
Once you have entered the Gen Key command, you will get a few more questions:

Enter file in which to save the key (/home/demo/.ssh/id_rsa):
You can press enter here, saving the file to the user home (in this case, my example user is called demo).

Enter passphrase (empty for no passphrase):

The public key is now located in /home/demo/.ssh/id_rsa.pub The private key (identification) is now located in /home/demo/.ssh/id_rsa


Step Three—Copy the Public Key
Once the key pair is generated, it's time to place the public key on the virtual server that we want to use.

You can copy the public key into the new machine's authorized_keys file with the ssh-copy-id command. Make sure to replace the example username and IP address below.

ssh-copy-id This email address is being protected from spambots. You need JavaScript enabled to view it.92.168.169.1
Alternatively, you can paste in the keys using SSH:

cat ~/.ssh/id_rsa.pub | ssh This email address is being protected from spambots. You need JavaScript enabled to view it.192.168.169.1 "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"

S5 Box

Login