jianlinwei / connectbot

Automatically exported from code.google.com/p/connectbot
Apache License 2.0
0 stars 0 forks source link

Support for ProxyCommand-like functionality #386

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It would be nice to be able to get similar functionality to OpenSSH's 
ProxyCommand. In various situations, you may want to reach a host inside some 
network, but only one host is open to ssh from the outside. Rather than sshing, 
and then manually running ssh again to the final destination, you can use a 
ProxyCommand setting like:

  ProxyCommand /usr/bin/ssh -q -C -W%h:%p gateway.my.net

And then when you ssh to the inner host, traffic gets bounced properly. The 
case where this is actually important is when you are proxying / port 
forwarding. With this approach, the endpoint of your proxy is on your final 
host, not on the gateway.

Original issue reported on code.google.com by mkell...@gmail.com on 5 Nov 2010 at 6:43

GoogleCodeExporter commented 9 years ago
I second this feature (although it should be an enhancement rather than a 
defect), this would be extremely useful to me, as I am quite often needing to 
SSH to a host that is inside a NAT environment and doesn't have an external IP 
address. This solution is much easier and elegant than setting up an extra port 
forward.

Original comment by mike.fab...@gmail.com on 27 Jun 2011 at 12:59

GoogleCodeExporter commented 9 years ago
Same here. Very useful feature to access corporate machines.

Original comment by acorn...@gmail.com on 19 Nov 2014 at 4:17