User Tools

Site Tools


computing:linux: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
computing:linux:ssh_keys [2011/12/13 12:56]
gcooper
computing:linux:ssh_keys [2017/01/28 12:33] (current)
gcooper
Line 9: Line 9:
 </file> </file>
  
-===== Without ''ssh-copy-id'' =====+===== Without ssh-copy-id =====
  
 If the ''ssh-copy-id'' script is not available: If the ''ssh-copy-id'' script is not available:
Line 21: Line 21:
 If SSH is on a non-standard port: If SSH is on a non-standard port:
  
 +<file>
 +ssh-copy-id -p 2222 user@remote.host.name
 +</file>
 +or:
 <file> <file>
 cat ~/.ssh/*.pub | ssh -p 2222 root@remote.host.name 'umask 077; cat >>.ssh/authorized_keys' cat ~/.ssh/*.pub | ssh -p 2222 root@remote.host.name 'umask 077; cat >>.ssh/authorized_keys'
 </file> </file>
  
-If no public key yet exists on the machine you will be using to make remote connections:+===== Generate Public Key ===== 
 + 
 +If no public key yet exists on the machine you will be using to make remote connections, you'll need to create one.  This is only done once:
  
 <file> <file>
-ssh-keygen -t dsa+ssh-keygen -t rsa
 </file> </file>
 +
 +You probably want to just hit enter at the passphrase prompt.
computing/linux/ssh_keys.1323806202.txt.gz · Last modified: 2011/12/13 12:56 by gcooper