← Back to team overview

ubuntu-server-tips team mailing list archive

[Bug 413054] Re: ssh socks proxy


Could you try to word this to fit on 2 lines, as per

** Changed in: ubuntu-server-tips
       Status: New => Incomplete

ssh socks proxy
You received this bug notification because you are a member of Ubuntu
Server Tips, which is subscribed to Ubuntu Server Tips.

Status in Ubuntu Server Tips: Incomplete

Bug description:
To open a dynamic SOCKS proxy with SSH, just use 'ssh -D port user@host', where port should be your desired proxy port. Then use this forward with any SOCKS compatible application to route traffic through the remote host. You can also use DynamicForward in .ssh/config (look at man ssh_config).

(just found out this only works with the netcat-openbsd package)

To use a SOCKS proxy with SSH through netcat, add this to your .ssh/config:

Host host-via-socks
HostName host
ProxyCommand /usr/bin/nc localhost:8080 %h %p

(replace 8080 with your SOCKS port)