LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-23-2007, 07:39 AM   #1
rbkool
LQ Newbie
 
Registered: Mar 2006
Posts: 6

Rep: Reputation: 0
Accessing SSH from behind a proxy server


Hi all,

I have a SSH server on my linux system running on port 6192..

I have been connecting to it from over my LAN and also over the internet.

However i am facing a problem while connecting from my workplace. My workplace system is connected to the internet from behind a proxy server. When i try accessing my linux system from there i am getting an error "Connection Timed Out".

I have the Privacy.net analyzer on network-tools.com, i got the info that ports 554, 443 and 80 were allowing outbound traffic. Does using any of these ports allow me to access my linux system using SSH...

The setup i have is:
Fedora 7
Internet thru ADSL and wireless router.
SSH is running on port 6192

I use PuTTY to connect to my linux system..

Ravi.
 
Old 06-23-2007, 09:37 AM   #2
chewb
LQ Newbie
 
Registered: Jun 2007
Posts: 2

Rep: Reputation: 0
It looks like your work is only letting Real Time Streaming Protocol, HTTPS and HTTP outbound respectively. You can make your router/firewall at home forward one of those ports to 6192 (if it's halfway decent), but that's a little risky because those three ports are constantly scanned by jerks and SSH has been exploited before.

I would suggest (bear with me here) a DynDNS.org or no-ip.org address that will forward a request to a non-standard port on your firewall that is forwarded to 6192. That way, you send out a request on 80, and the dyndns redirects from there without having those vulnerable ports open on your network. My setup is a dynamic domain name that redirects to myhomeip.org:8980 (with cloaked redirect), with my firewall set to forward requests on 8980 to my server's SSH port. Of course there is a chance that someone will stumble upon either of the addresses and make a SSH request, but it works very well as long as you have a good password and you choose a higher up port number.

I've never used it to get out of a proxy though, but I don't see why it wouldn't work. Let us know if it does.
 
Old 06-23-2007, 11:09 AM   #3
chewb
LQ Newbie
 
Registered: Jun 2007
Posts: 2

Rep: Reputation: 0
I was just trying out sending the SSH request on port 80 through my dyndns.org address and getting no luck, so I guess my suggestion is no good for your situation. Sorry.

I was looking around though, and if you have a web server on your machine you could install a Java SSH applet that you could access through a web page you set up. Or you could set up an HTTP SSH proxy of your own, but I've never done that...
 
Old 08-25-2007, 10:12 AM   #4
tuxhats
Member
 
Registered: Dec 2005
Location: Austin, Texas area
Distribution: I have multiple Distos available, but I mostly use Ubuntu.
Posts: 47

Rep: Reputation: 16
ssh behind a proxy

Type in s shell:
export HTTP_PROXY=http://xxx.xxx.xxx.xxx:xxxx

Sample: HTTP_PROXY=http://101.242.3.5:8080

then press enter and then try ssh
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to SSH through a proxy server Scotteh Linux - Networking 10 05-31-2006 07:03 AM
problem in accessing the server using ssh gauri Debian 1 01-17-2006 10:56 PM
Configuration for a client accessing a proxy server darin3200 Linux - Networking 2 01-08-2005 12:48 PM
Accessing Yahoo Messenger through proxy Server thetechie_reck Linux - Networking 0 07-09-2004 12:48 AM
Problems accessing server using ssh client. rmc Linux - Networking 1 12-12-2002 02:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration