Re: Help with GTK and putty

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Scott Ehrlich wrote:
I need a solution (commandline or otherwise) that will let me ssh through a socks proxy. What is a real-world .ssh/config line with ProxyCommand to look like that will work?

Thanks.

Scott


A quick look at the ssh_config and nc manpages indicates something like this should work in your .ssh/config:

Host {target}
    ProxyCommand /usr/bin/nc -X 5 -x {proxyip}:{proxyport} %h %p

where {target} is the FQDN of the target host, {proxyip} is the IP of the SOCKS proxy, and {proxyport} is the port of the SOCKS proxy. Change "-X 5" to "-X 4" if your SOCKS proxy is version 4 instead of 5. I haven't tested this, it's just extrapolation from the manpages.

Hope that helps!
--
Jay Leafey - Memphis, TN
jay.leafey@xxxxxxxxxxxx

<<attachment: smime.p7s>>

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux