This is an old revision of the document!
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