Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 12-11-2007, 03:57 AM   #1
LQ Newbie
Registered: Aug 2004
Posts: 8

Rep: Reputation: 0
Question Strange SSH problem (connected but not active)

Ok ... this is the problem.
I'm on a wireless network in a company i'm outsourced to ... so I have no direct DIY access to their network.

When I try to connect to a certain host my ssh app just freazes.
The -vv output looks like this:
OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007
debug1: Reading configuration data /etc/ssh/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to [] port 22.
debug2: fd 3 setting O_NONBLOCK
debug1: fd 3 clearing O_NONBLOCK
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug2: key_type_from_name: unknown key type '-----END'
debug1: identity file /root/.ssh/id_rsa type 1
>>freezes here<<

However ... the funny part is ... when i look at the tcpdumps on my laptop or on the server i'm trying to connect to (i can connect to that server trough another server, but i need a direct connection so please no tunneling suggestions) i see that packets are being sent back anf forth and if i use tcptrack it show this connection as ESTABLISHED.

So ... now ... what is the problem ...
the same connection works normaly if i'm in another wireless network and the connection also works if i try to conect from a local box in this company.

So the problem is obviously not in the network nor server ... it must be something on my laptop but just on this wireless ...

I've run out of things i could think of to check ... so ... HELP :S !
Old 12-15-2007, 07:06 AM   #2
Senior Member
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
I don't know if this really matches all of your symptoms, but from the debug output, I am wondering if there is some problem with you id_rsa file.

As far as packets flowing and tcptrack, the TCP connection does get established before ssh and sshd can start talking to each other to confirm that everything is as it should be.
Old 12-17-2007, 03:34 PM   #3
LQ Addict
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
One of the few things to check is DNS resolution.
Put IP address of your wireless client into /etc/hosts file on the SSH server, and see if you can login.
Old 12-17-2007, 04:00 PM   #4
LQ Guru
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,239
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
Works perfectly fine on other WAP's but not on that particular one.. Have you tried reducing the MTU of your machine ? drop it from 1500 to 1492 (maybe start lower) or something similar to how you would deal with a PPPoE connection.

Just a thought.



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
Strange SSH problem graw Linux - Networking 6 12-15-2004 04:47 PM
strange ssh problem yull Linux - Security 8 12-11-2004 02:58 PM
ndiswrapper active, card connected, no TX, no IP kersten78 Linux - Wireless Networking 24 09-07-2004 02:43 PM
Strange ssh problem Inexactitude *BSD 2 04-05-2004 01:37 PM
Strange! SSH and Telnet login problem McSmooth Linux - General 7 10-03-2003 09:24 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:01 PM.

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