Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
linux:ssh [2019/11/20 11:50] – [ssh over Proxy] tmade | linux:ssh [2021/03/22 11:23] – [ssh-agent] tmade |
---|
==== ssh-agent ==== | ==== ssh-agent ==== |
| |
ssh-agent bash #Start the agent for the required shell (sh, bash etc.) | ssh-agent -s #Start the agent for the required shell (sh, bash etc.) |
eval $(ssh-agent -s) | |
ssh-add ~/.ssh/id_rsa #Add the key (passphrase will be promted) | ssh-add ~/.ssh/id_rsa #Add the key (passphrase will be promted) |
| |
==== ssh Tunnel ==== | ==== ssh Tunnel ==== |
ssh -L 4242:suse10.site:110tmade@suse10.site #user tmade forwards the connection comming in on port 4242 of his local host suse10 to port 110(POP3) on the remote host suse10 via ssh tunnel (port forwarding) | ssh -L 4242:suse10.site:110tmade@suse10.site #user tmade forwards the connection comming in on port 4242 of his local host suse10 to port 110(POP3) on the remote host suse10 via ssh tunnel (port forwarding) |
| |
ssh -o ProxyCommand="nc -X connect -x proxy_host_or_IP:port %h %p" username@hostname | ssh -o ProxyCommand="nc -X connect -x proxy_host_or_IP:port %h %p" username@hostname |
| ssh -o PORT=2022 -o ProxyCommand="nc -X connect -x proxy_host_or_IP:port %h %p" username@hostname #with ssh port 2022 |
| |
**Hint**: Package "netcat-openbsd" which contains the programm "nc" has to been installed! | **Hint**: Package "netcat-openbsd" which contains the programm "nc" has to been installed! |
*export DISPLAY=localhost:10.0 | *export DISPLAY=localhost:10.0 |
*xclock (or another X-Programm) | *xclock (or another X-Programm) |
| |
| ====Check ssh-config==== |
| |
| sshd -t #command to check for syntax errors in your configuration file |
| sshd -T #output active directives |