Difference between revisions of "SSH"
From Useful Things
(→Upload SSH public key to remote host) |
|||
| Line 1: | Line 1: | ||
| + | == Common arguments == | ||
| + | <code>-p</code> port number | ||
| + | |||
== Upload SSH public key to remote host == | == Upload SSH public key to remote host == | ||
<source lang="bash"> | <source lang="bash"> | ||
cat /root/.ssh/id_rsa.pub | ssh root@remotehost 'cat >> /root/.ssh/authorized_keys' | cat /root/.ssh/id_rsa.pub | ssh root@remotehost 'cat >> /root/.ssh/authorized_keys' | ||
</source> | </source> | ||
Revision as of 01:41, 4 July 2014
Common arguments
-p port number
Upload SSH public key to remote host
cat /root/.ssh/id_rsa.pub | ssh root@remotehost 'cat >> /root/.ssh/authorized_keys'