View Full Version : how to connect to ssh by proxy ?
qwe010
24th February 2008, 18:14
hello
i have server i install on it squid
i browse the internet by enter this proxy
localhost
8080
how i can connect to another server with this proxy in linux ?
in windows we use putty but in linux ?
topdog
25th February 2008, 08:25
ssh is the putty equivalent on linux
qwe010
25th February 2008, 10:59
but how ? what the right command ?
topdog
25th February 2008, 13:40
What exactly do you do in putty that you want to be able to do on linux ?
Because a normal ssh connection is just
ssh <hostname>
Leszek
25th February 2008, 16:36
If the ssh server runs on a different port than 22 then You can connect by entering:
ssh -p 222 user @ domain.pl where "222" is the port number.
qwe010
25th February 2008, 18:41
What exactly do you do in putty that you want to be able to do on linux ?
Because a normal ssh connection is just
ssh <hostname>
that
http://kimmo.suominen.com/docs/proxy-through-ssh/
topdog
25th February 2008, 20:13
Okay you are talking about port forwarding this is how you do it
ssh -L 3128 localhost:3128 <ip_address_of_squid>
Or add this to your .ssh/config
Host squid_server
Hostname <squid_ip>
Localforward 3128 localhost:3128
Then ssh squid_server
Then configure your web browser to use proxy 127.0.0.1 port 3128
qwe010
4th March 2008, 16:22
thanks topdog
but after that how i can connect to another server with ( squid server ip )
do i must do that from same terminal ?
topdog
4th March 2008, 17:29
You can connect from a different terminal if you want if the port is already forwarded ssh will ignore the forward.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.