Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
linux:ssh [2019/09/26 16:57] – [SSH KEY-Authentication] tmadelinux:ssh [2020/04/28 18:12] – [X11] tmade
Line 142: Line 142:
 ==== 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 over Proxy ====
 +
 +  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!
      
 ==== X11 ==== ==== X11 ====
Line 154: Line 161:
   *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
linux/ssh.txt · Last modified: 2021/10/18 09:04 by tmade
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki