Linux/SSH: Difference between revisions

From Wiki
No edit summary
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
Line 6: Line 6:


* SSH Key Login
* SSH Key Login
slave:
on controlling client:
<pre>
<pre>
ssh-keygen -t rsa 
ssh-keygen
</pre>
ssh-copy-id -i ~/.ssh/id_rsa user@server      # Ubuntu up to 22.04
 
ssh-copy-id user@server                      # Ubuntu from 24.04
master:
<pre>
cat ~/.ssh/*.pub | ssh user@remote-system 'umask 077; cat >>.ssh/authorized_keys'
</pre>
</pre>
[[Category:Linux/Network]]
[[Category:Linux]]

Latest revision as of 17:47, 1 September 2024

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


  • SSH Key Login

on controlling client:

ssh-keygen
ssh-copy-id -i ~/.ssh/id_rsa user@server      # Ubuntu up to 22.04
ssh-copy-id user@server                       # Ubuntu from 24.04