LinuxQuestions.org
Review your favorite Linux distribution.
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 05-21-2007, 11:16 AM   #1
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
et ssh home (from work)


hi, i am hoping to be able to connect to my pc at home while i am in the office.

i thought it was that my company's firewall doesnt allow port 22 traffic so i set up my ssh server to listen out of port 80 thinking i could confuse my company's firewall into thinking it was http traffic.

but putty still hangs for about :30 secs and then i still get 'network error: connection timed out'.

when i use internet explorer i get a page that says: 'SSH-1.99-OpenSSH_3.5p1 hhhhhhhhhhhhhhh' (without the h's)

is there a way to get a command line prompt to my pc ?

thanks,
 
Old 05-21-2007, 11:23 AM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
That looks like the correct SSH banner. Is it possible that your work is running a transparent proxy? Try running it on port 443, the HTTPS ports. Many firewalls are configured to just let it right through.
 
Old 05-21-2007, 05:05 PM   #3
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Original Poster
Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
thanks matir but that diddnt work.

i get a 'connection closed by remote host' error in putty.

inetenet explorer gives this:
Code:
http://x.x.x.x:443
SSH-1.99-OpenSSH_3.5p1
any other ideas ?
 
Old 05-21-2007, 05:50 PM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
In internet explorer, try going to a secure website and checking to see if the certificate belongs to your company or to the real server. If its your company, they're even running an SSL proxy, which will make things much more difficult.
 
1 members found this post helpful.
Old 05-22-2007, 11:40 AM   #5
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Original Poster
Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
good reminder. i just paid my car insurance and i clicked on the lock icon on the bottom right.

the certificate path says from verisign to verisign to verisign to my insurance company.

tahnks,
 
Old 05-22-2007, 01:00 PM   #6
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
I would look and see if PuTTY has a verbose mode that might tell us more about what is going on. Also, you may want to try looking at logs on your server to see if it recorded anything unusual.
 
Old 05-23-2007, 05:40 PM   #7
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Original Poster
Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
thanks for the suggestion, putty's logging is pretty weak.

but my logs has a lot of hits, here's the latest:
Code:
[root@hyper root]# grep -ir ssh /var/log | grep -i "may 23 18"
/var/log/secure:May 23 18:30:53 pcp04663196pcs sshd[8303]: Did not receive identification string from x.x.x.x
[root@hyper root]#
is there a way to force it to send a id string ? (what is an id string ?)

thanks,

Last edited by schneidz; 05-23-2007 at 05:46 PM.
 
Old 05-26-2007, 01:42 PM   #8
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Original Poster
Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
here's what i got:

i am at home and i can putty into my redhat machine easily. then even if i leave the connection on i will vpn into my company lan. the existing connection will close (putty says "software caused the connection to close"). then i am unable to ssh back into my redhat machine until i close the vpn session.

Code:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

//before vpn to company lan
C:\Documents and Settings>ipconfig

Windows IP Configuration


Ethernet adapter Wireless Network Connection:

        Connection-specific DNS Suffix  . : host.pa.isp.net.
        IP Address. . . . . . . . . . . . : 192.168.5.102
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 192.168.5.1

Ethernet adapter Local Area Connection:

        Connection-specific DNS Suffix  . : host.pa.isp.net.
        IP Address. . . . . . . . . . . . : 192.168.5.100
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 192.168.5.1

//after vpn to company lan
C:\Documents and Settings>ipconfig

Windows IP Configuration


Ethernet adapter Wireless Network Connection:

        Connection-specific DNS Suffix  . : host.pa.isp.net.
        IP Address. . . . . . . . . . . . : 192.168.5.102
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . :

Ethernet adapter Local Area Connection:

        Connection-specific DNS Suffix  . : host.pa.isp.net.
        IP Address. . . . . . . . . . . . : 192.168.5.100
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . :

Ethernet adapter Local Area Connection 4:

        Connection-specific DNS Suffix  . : vpn.company.lan.com
        IP Address. . . . . . . . . . . . : x.x.x.x
        Subnet Mask . . . . . . . . . . . : 255.255.240.0
        Default Gateway . . . . . . . . . : x.x.x.x

C:\Documents and Settings>
does this make sense ?

here is where i ran sshd in debug mode:
Code:
[schneidz@hyper log]$ sudo /usr/sbin/sshd -d -d -d
debug1: sshd version OpenSSH_3.5p1
debug1: private host key: #0 type 0 RSA1
debug3: Not a RSA1 key file /etc/ssh/ssh_host_rsa_key.
debug1: read PEM private key done: type RSA
debug1: private host key: #1 type 1 RSA
debug3: Not a RSA1 key file /etc/ssh/ssh_host_dsa_key.
debug1: read PEM private key done: type DSA
debug1: private host key: #2 type 2 DSA
debug1: Bind to port 443 on 192.168.5.25.
Server listening on 192.168.5.25 port 443.
Generating 768 bit RSA key.
RSA key generation complete.
debug1: Server will not fork when running in debugging mode.
Connection from x.x.x.x port 16232 Did not receive identification string from x.x.x.x
debug1: Calling cleanup 0x8070d90(0x0)
[schneidz@hyper log]$
this may be a stupid question but is the identification string the same as the username ?

thanks,

Last edited by schneidz; 05-26-2007 at 01:44 PM.
 
Old 05-26-2007, 09:52 PM   #9
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
No, identification string is the client telling the server what protocol versions it supports, etc. There could be an SSL proxy of some sort, I suppose.
 
1 members found this post helpful.
Old 05-29-2007, 09:31 AM   #10
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Original Poster
Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
thanks a lot matir, you helped me immensely.

i guess this is my dead-end.

i dont think there is a configuration which would make the server ignore the id string.

this thread mentions editing source so that it doesnt look for id string:
http://www.linuxquestions.org/questi...ng+from+source

does anyone have a suggestion how i edit its source ?

thak you,
 
  


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
Home to Work with SSH Problems nomb Linux - Networking 3 01-27-2007 10:20 PM
want to ssh/ftp to home machine (Slack) from office through home router fincher69 Linux - Networking 2 09-21-2005 10:55 PM
cannot ssh to home linux box from work gene_albin Linux - Networking 4 11-20-2004 07:26 AM
trying to ssh from home naijaguy Linux - Networking 1 08-14-2004 12:57 AM
can't ssh to home jefferson117 Linux - Newbie 3 11-08-2002 11:51 AM

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

All times are GMT -5. The time now is 08:37 PM.

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