Linux/SSH: Difference between revisions

From Wiki
No edit summary
No edit summary
Line 6: Line 6:


* SSH Key Login
* SSH Key Login
slave:
on controlling client:
<pre>
<pre>
ssh-keygen -t rsa   
ssh-keygen -t rsa   
</pre>
ssh-copy-id -i ~/.ssh/id_rsa user@server
 
master:
<pre>
cat ~/.ssh/*.pub | ssh user@remote-system 'umask 077; cat >>.ssh/authorized_keys'
</pre>
</pre>

Revision as of 17:01, 15 April 2014

  • SSH port forwarding
$ ssh user@work.example.org -L 10000:172.16.10.10:22


  • SSH Key Login

on controlling client:

ssh-keygen -t rsa  
ssh-copy-id -i ~/.ssh/id_rsa user@server