User Tools

Site Tools


guides:unix_admin:setting_up_ssh_keys

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
guides:unix_admin:setting_up_ssh_keys [2016/03/15 09:55]
michaelc
guides:unix_admin:setting_up_ssh_keys [2016/03/15 10:16]
michaelc
Line 1: Line 1:
 ====== Setting up SSH public/​private keys ====== ====== Setting up SSH public/​private keys ======
  
-SSH (Secure Shell) can be set up with public/​private key pairs which is much more secure then password authentication.+SSH (Secure Shell) can be set up with public/​private key pairs which is much more secure then password authentication ​and it saves you typing out a password every time you need to authenticate to a service.
  
 There are two types of ssh keys either RSA or DSA. Recommend using RSA over DSA. There are two types of ssh keys either RSA or DSA. Recommend using RSA over DSA.
Line 30: Line 30:
        
        ​ssh-copy-id <​username>​@<​host>​        ​ssh-copy-id <​username>​@<​host>​
 +       
 +   OR
 +   
 +   If you don't have ssh-id-copy a single line command to copy.
 +   
 +      cat id_rsa.pub | ssh user@host 'cat >> ~/​.ssh/​authorized_keys'​
  
  
Line 58: Line 64:
        
        ​ssh-copy-id <​username>​@<​host>​        ​ssh-copy-id <​username>​@<​host>​
 +       
 +   OR
 +   
 +   If you don't have ssh-id-copy a single line command to copy.
 +   
 +      cat id_dsa.pub | ssh user@host 'cat >> ~/​.ssh/​authorized_keys'​
guides/unix_admin/setting_up_ssh_keys.txt · Last modified: 2016/03/15 10:16 by michaelc