Difference between revisions of "SSH"
From Useful Things
| Line 1: | Line 1: | ||
== Common arguments == | == Common arguments == | ||
| − | <code>-p</code> port number | + | <code>-p</code> port number (default 22) |
== Upload SSH public key to remote host == | == Upload SSH public key to remote host == | ||
Revision as of 01:41, 4 July 2014
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'