Difference between revisions of "SSH"
From Useful Things
| Line 9: | Line 9: | ||
== Generate public/private RSA key-pair == | == Generate public/private RSA key-pair == | ||
<pre>ssh-keygen -t rsa -C 'user@host.com'</pre> | <pre>ssh-keygen -t rsa -C 'user@host.com'</pre> | ||
| + | |||
| + | == Test private key passpharse == | ||
| + | <pre>ssh-keygen -y</pre> | ||
Latest revision as of 11:32, 26 January 2015
Contents
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'
Test private key passpharse
ssh-keygen -y