Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 24th February 2008, 17:14
qwe010 qwe010 is offline
Member
 
Join Date: Nov 2006
Posts: 52
Thanks: 0
Thanked 1 Time in 1 Post
Default how to connect to ssh by proxy ?

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 ?
Reply With Quote
Sponsored Links
  #2  
Old 25th February 2008, 07:25
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 153 Times in 150 Posts
Default

ssh is the putty equivalent on linux
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #3  
Old 25th February 2008, 09:59
qwe010 qwe010 is offline
Member
 
Join Date: Nov 2006
Posts: 52
Thanks: 0
Thanked 1 Time in 1 Post
Default

but how ? what the right command ?
Reply With Quote
  #4  
Old 25th February 2008, 12:40
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 153 Times in 150 Posts
Default

What exactly do you do in putty that you want to be able to do on linux ?

Because a normal ssh connection is just
Code:
ssh <hostname>
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #5  
Old 25th February 2008, 15:36
Leszek Leszek is offline
Senior Member
 
Join Date: Nov 2006
Location: Poland,Włocławek
Posts: 369
Thanks: 22
Thanked 42 Times in 35 Posts
Send a message via Skype™ to Leszek
Default

If the ssh server runs on a different port than 22 then You can connect by entering:
Code:
 ssh -p 222 user @ domain.pl
where "222" is the port number.
Reply With Quote
  #6  
Old 25th February 2008, 17:41
qwe010 qwe010 is offline
Member
 
Join Date: Nov 2006
Posts: 52
Thanks: 0
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by topdog
What exactly do you do in putty that you want to be able to do on linux ?

Because a normal ssh connection is just
Code:
ssh <hostname>
that
http://kimmo.suominen.com/docs/proxy-through-ssh/
Reply With Quote
  #7  
Old 25th February 2008, 19:13
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 153 Times in 150 Posts
Default

Okay you are talking about port forwarding this is how you do it
Code:
ssh -L 3128 localhost:3128 <ip_address_of_squid>
Or add this to your .ssh/config
Code:
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
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #8  
Old 4th March 2008, 15:22
qwe010 qwe010 is offline
Member
 
Join Date: Nov 2006
Posts: 52
Thanks: 0
Thanked 1 Time in 1 Post
Default

thanks topdog

but after that how i can connect to another server with ( squid server ip )

do i must do that from same terminal ?
Reply With Quote
  #9  
Old 4th March 2008, 16:29
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 153 Times in 150 Posts
 
Default

You can connect from a different terminal if you want if the port is already forwarded ssh will ignore the forward.
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting e-mail working hansoffate Installation/Configuration 29 13th August 2008 16:33
Postfix problem: lost connection after CONNECT from unknown fernando_torrez Server Operation 5 30th November 2007 14:17
mail issue - can recieve but not send phillycode Installation/Configuration 2 24th March 2007 15:02
Email seemingly not working... Duplex Installation/Configuration 11 19th April 2006 14:48
Perfect Xen 3.0 setup for Debian gurneyzap HOWTO-Related Questions 4 26th March 2006 11:30


All times are GMT +2. The time now is 12:52.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.