Difference between revisions of "SSH"
From Useful Things
(→Upload SSH public key to remote host) |
|||
| Line 1: | Line 1: | ||
== Upload SSH public key to remote host == | == Upload SSH public key to remote host == | ||
| + | <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> | ||
Revision as of 01:40, 4 July 2014
Upload SSH public key to remote host
cat /root/.ssh/id_rsa.pub | ssh root@remotehost 'cat >> /root/.ssh/authorized_keys'