Close

If you need to proxy via intermediary servers to access your destination (for example, maybe you’re outside your work network and need to access a client estate that is IP-restricted) you can multi-hop manually, or the following host based config can be added to your ~/.ssh/config:

Host *.target.com
  ProxyCommand ssh -q user@work.com nc %h 22

This will then allow you to…

ssh user@server.target.com

…and be transparently proxied via proxy-server.com

About the author

Box UK

Box UK

Box UK's team of simply brilliant thinkers, consultants and application developers mastermind simply brilliant solutions to the world's toughest, performance-critical web and software assignments.

Related content

Tech round-up: Sep 16th

By Steve Anderson

Tech round-up: Nov 27th

By Ian Jenkins

We're hiring. Let's talk. View available roles