Posted By

deanhouseholder on 04/16/13


Bash linux proxy nc

Versions (?)

Use a proxy with ssh/scp on Linux

 / Published in: Bash

In order to use a proxy by default for your network-based commands, create the file "~/.ssh/config" and give it these properties. Replace "proxyhost" with the hostname/IP of the proxy server and "80" with the port of the proxy server.

  1. ProxyCommand /usr/bin/nc -X connect -x proxyhost:80 %h %p

Report this snippet  

You need to login to post a comment.