LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 05-30-2006, 03:40 PM   #1
Scotteh
Member
 
Registered: May 2006
Distribution: Debian, Kubuntu Gutsy
Posts: 44

Rep: Reputation: 15
Trying to SSH through a proxy server


At school, I'd like to be able to SSH home so I can get files from my computer (I won't be a breach of security), but because of the proxy (I think), it doesn't let me. I get an error when trying to connect using PuTTY: "Network error. Connection timed out." Or something of the same meaning. Is there any way to SSH through the proxy so that I can connect to my house? I'm using PuTTY v0.58 and SSH2.
 
Old 05-30-2006, 03:50 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
ssh can run through an HTTP proxy ok, but your firewalls and such need to be configured to permit the destination outbound too. personally i've had good experiences running an ssh server on port 443 as this port has been unused as i don't server https and so you could get straight through that way. if your proxy will try to connect to port 22 directly then that's fine then.
 
Old 05-30-2006, 06:06 PM   #3
Scotteh
Member
 
Registered: May 2006
Distribution: Debian, Kubuntu Gutsy
Posts: 44

Original Poster
Rep: Reputation: 15
Configuring the proxy is not an option because it is run by the school board. I'll try port 443.
 
Old 05-30-2006, 08:50 PM   #4
joseph
Member
 
Registered: Jun 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414

Rep: Reputation: 30
Actually default port for ssh is 22, so if the admin of the server didn't change the port to other port, then your attemp to connect to port 443 will be meaningless.
 
Old 05-30-2006, 10:16 PM   #5
Scotteh
Member
 
Registered: May 2006
Distribution: Debian, Kubuntu Gutsy
Posts: 44

Original Poster
Rep: Reputation: 15
Quote:
Actually default port for ssh is 22, so if the admin of the server didn't change the port to other port, then your attemp to connect to port 443 will be meaningless.
I'm not sure I know what you mean. You can specify which port to use in the PuTTY GUI, or I think at the command-line by doing
Code:
ssh hostname:port

Last edited by Scotteh; 05-30-2006 at 10:18 PM.
 
Old 05-30-2006, 11:22 PM   #6
joseph
Member
 
Registered: Jun 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414

Rep: Reputation: 30
Quote:
Originally Posted by Scotteh
I'm not sure I know what you mean. You can specify which port to use in the PuTTY GUI, or I think at the command-line by doing
Code:
ssh hostname:port
This is what i mean :
- default port for ssh is 22.

- if the sys admin didn't change the default port to other port such as 443 then a command like this ssh hostname:443 will be failed.

- if your sys admin never change the default port to other port and has blocked a connection to port 22 or only specified ip can access to port 22 then u cant do anything, unless you know how to hack to the system.
 
Old 05-31-2006, 01:00 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
if the OP wants to ssh "home" to me that suggests that he is the server admin, in which case he can make ssh listen wherever he wants to. Additionally an ADSL router or such like that is already sitting here can be configured to portward external 443 requests to port 22 on the server inside. Mind you, this is only my suggestion when i had no success with any other attempts...
 
Old 05-31-2006, 01:13 AM   #8
prozac
Member
 
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753

Rep: Reputation: 32
if your school firewall has a policy to drop input/output by default and only allow selective connections then you have a problem. the administrator there must have rules in place for only the packets he wants in/out and that too at certain ports. all other packets are dropped by default in such conditions.
now when you ssh home, you connect to a ssh server running on certain port and a certain ip. your administrator must add a rule to allow this. your other option would be to configure your ssh server at home to use a global port which the administrator at school dare not block. see if you can find out a port that has global access to outside world and then use that port to connect home. that way you would be using a outgoing/incoming connection for which there already is an accept rule in your school firewall.
 
Old 05-31-2006, 06:25 AM   #9
Scotteh
Member
 
Registered: May 2006
Distribution: Debian, Kubuntu Gutsy
Posts: 44

Original Poster
Rep: Reputation: 15
Such as port 8080? How would I configure my ssh server at home to be able to do this?
 
Old 05-31-2006, 06:37 AM   #10
prozac
Member
 
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753

Rep: Reputation: 32
find your /etc/ssh/sshd_config file and edit it to use port 8080 i guess
 
Old 05-31-2006, 07:03 AM   #11
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
well as above, if you have an ADSL router between your box and the net, then you'd do a port translation on the router and not touch the server tiself.
 
  


Reply

Tags
proxy, putty, school, server, ssh


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
SSH connection through companies proxy server rydl Linux - Networking 2 10-26-2005 09:08 AM
Does anyone have a guide for setting up SSH.Proxy server? martinj Linux - Networking 2 06-18-2005 02:39 AM
Proxy problem: can`t connect SSH through proxy... bugzilla Linux - Networking 3 09-16-2004 10:36 AM
ssh/scp via a windows proxy server saleemlqorg Linux - Networking 2 01-09-2004 05:57 PM
how to ssh to Linux server via Win2K proxy wkuk Linux - Networking 2 04-23-2003 05:03 PM


All times are GMT -5. The time now is 10:39 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration