User Tools

Site Tools


computing:linux:ssh_keys

This is an old revision of the document!


Set Up SSH Keys

Use this command to set up your SSH key on a remote server that you log into frequently:

ssh-copy-id root@www.yourdomain.com

Or if the ssh-copy-id script is not available:

cat ~/.ssh/*.pub | ssh user@remote-system 'umask 077; cat >>.ssh/authorized_keys'

or if SSH is on a non-standard port:

cat ~/.ssh/*.pub | ssh -p 2222 root@www.sonoracomm.com 'umask 077; cat >>.ssh/authorized_keys'

If no public key yet exists on the machine you will be using to make remote connections:

ssh-keygen -t dsa
computing/linux/ssh_keys.1323805984.txt.gz · Last modified: 2011/12/13 12:53 by gcooper