Using -W with -L (Local Forwarding) and -D (Socks Forwarding)
thomas at glanzmann.de
Sun Jul 31 21:36:54 AEST 2016
I have in my ssh config:
Match host 188.8.131.52 exec "~/bin/connect.sh"
ProxyCommand ssh -D 1080 -L8080:184.108.40.206:8080 -p 443 bouncehost -W %h:%p
if echo | nc -w 1 220.127.116.11 22 | grep -q SSH; then
So when I can't connect to the system directly it should go over a bounce host
but at the same time use a portforwarding which is only available from the
bouncehost but not the server itself. My problem is that -W clears all forwardings.
Is there another trick or option for example with -L that allows me to forward
stdin using a bounce host but let me specify additional forwardings?
For now I just go back to use netcat which works fine.
More information about the openssh-unix-dev