Displaying 1 result from an estimated 1 matches for "bouncehost".
2016 Jul 31
2
Using -W with -L (Local Forwarding) and -D (Socks Forwarding)
Hello,
I have in my ssh config:
Match host 2.3.4.5 exec "~/bin/connect.sh"
ProxyCommand ssh -D 1080 -L8080:1.2.3.4:8080 -p 443 bouncehost -W %h:%p
~/bin/connect.sh:
#!/bin/bash
if echo | nc -w 1 2.3.4.5 22 | grep -q SSH; then
false
else
true
fi
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...