SSH

From Useful Things
Revision as of 11:31, 26 January 2015 by Milosivanovic (talk | contribs)
Jump to: navigation, search

Common arguments

-p port number (default 22)

Upload SSH public key to remote host

cat /root/.ssh/id_rsa.pub | ssh root@remotehost 'cat >> /root/.ssh/authorized_keys'

Generate public/private RSA key-pair

ssh-keygen -t rsa -C 'user@host.com'