Use a proxy with ssh/scp on Linux

/ Published in: Bash
Save to your folder(s)

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.

Copy this code and paste it in your HTML
  1. ProxyCommand /usr/bin/nc -X connect -x proxyhost:80 %h %p

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.