Even simpler way to ssh through a firewall
Saturday, October 27th, 2007In his article Jacky explained how to easily drill holes through to ports on machines behind a firewall. What I normally want is to have ssh access to machines behind firewalls, allowing me to do scp, and easily ssh in without a stupid stop-over on the firewall machine.
I came across this solution that does exactly that. After the super-simple set-up I’m able to do:
% ssh rexobox
% rcp rexobox:some-file .
All that’s required is to tweak your .ssh/config. Mine looks like this on my laptop:
Host rexobox
Hostname exobox
HostKeyAlias exobox
ProxyCommand ssh fw.exoweb.net nc -w 1 %h 22
… repeated for other hosts
As usual, we caught a cab outside of our apartment building, Heqiao, heading first to Pacific Coffee at Fortune Plaza. They were, as many other places on January 1st, not working today. We continued in the same taxi to our second most favorite coffee shop, Sculpting in Time out by Lidu.