rs-freddo

Well-Known Member
May 13, 2003
834
1
168
Australia
cPanel Access Level
Root Administrator
Anyone got an ssh tunnel to their cpanel server working? I use putty on windows and can open a tunnel to the server on port 9999. netstat on windows confirms port is open. However changing proxy on firefox doesn't get any webpages....? I have tcp port forwarding, x11 forwarding and tunnels yes on cpanel ssh. Seems to me webpage request was sent to server but nothing comes back...? Anyone got any ideas?
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,911
2,233
363
cPanel Access Level
DataCenter Provider
Twitter

quizknows

Well-Known Member
Oct 20, 2009
1,008
86
78
cPanel Access Level
DataCenter Provider
You shouldn't need x11 forwarding, your firefox config for the localhost 9999 proxy is probably just wrong.

You can ssh tunnel anything through an SSH server with firefox if you SSH to the server with the -D 9999 flag. This opens a socks proxy on localhost:9999.

In the Firefox network settings, set your proxy settings:
leave Http, ssl, ftp proxy *blank* (this is important).
set just the SOCKS proxy settings:
host: localhost port 9999
socksv5
(remote DNS is optional, but I recommend it if your proxy host has access to a recursive DNS server)
 

rs-freddo

Well-Known Member
May 13, 2003
834
1
168
Australia
cPanel Access Level
Root Administrator
In the Firefox network settings, set your proxy settings:
leave Http, ssl, ftp proxy *blank* (this is important).
set just the SOCKS proxy settings:
host: localhost port 9999
socksv5
(remote DNS is optional, but I recommend it if your proxy host has access to a recursive DNS server)
That's exactly what i had wrong! All working now.

Just for anyone interested I also got it working on android using proxydroid (superuser required) and connectbot.