LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-22-2004, 10:38 AM   #1
outburst
LQ Newbie
 
Registered: Oct 2003
Posts: 6

Rep: Reputation: 0
ssh connection hang on SYN_RECV and FIN_WAIT1


I have a problem connecting to a fileserver with Mandrake 9.1.
The strange thing is that i'm able to connect to it only with my laptop, running Mandake 9.1, and i'm not able with all the others computers of the local network.

I'm particularly interested to connect from a server machine running Mandrake 8.1 with ssh package updated with the same version of the fileserver (OpenSSH_3.5p1).

What i get executing ssh -v fileserver_address is the following

[user@mail tmp]# ssh -vvv 192.168.0.2
OpenSSH_3.5p1, SSH protocols 1.5/2.0, OpenSSL 0x0090701f
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug3: cipher ok: aes128-cbc [aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc]
debug3: cipher ok: 3des-cbc [aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc]
debug3: cipher ok: blowfish-cbc [aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc]
debug3: cipher ok: cast128-cbc [aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc]
debug3: cipher ok: arcfour [aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc]
debug3: cipher ok: aes192-cbc [aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc]
debug3: cipher ok: aes256-cbc [aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc]
debug3: ciphers ok: [aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc]
debug1: Rhosts Authentication disabled, originating port will not be trusted.
debug1: ssh_connect: needpriv 0
debug1: Connecting to 192.168.0.2 [192.168.0.2] port 22.
debug1: Connection established.
debug1: identity file /user/.ssh/identity type -1
debug1: identity file /user/.ssh/id_rsa type -1
debug3: Not a RSA1 key file /user/.ssh/id_dsa.
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug3: key_read: no key found
debug3: key_read: no space
debug3: key_read: no space
debug3: key_read: no space
debug3: key_read: no space
debug3: key_read: no space
debug3: key_read: no space
debug3: key_read: no space
debug3: key_read: no space
debug3: key_read: no space
debug3: key_read: no space
debug2: key_type_from_name: unknown key type '-----END'
debug3: key_read: no key found
debug1: identity file /user/.ssh/id_dsa type 2


At this point the connection hang and doing netstat i get

tcp 0 1 host2:ssh host:2061 SYN_RECV

on the fileserver and

tcp 0 1 host:2061 host2:ssh FIN_WAIT1

in the other host.


Following there is ssh_config of the client host

ssh_config:
Host *
ForwardAgent no
ForwardX11 no
RhostsAuthentication no
RhostsRSAAuthentication no
RSAAuthentication yes
PasswordAuthentication yes
BatchMode no
CheckHostIP yes
StrictHostKeyChecking no
IdentityFile ~/.ssh/identity
IdentityFile ~/.ssh/id_rsa
IdentityFile ~/.ssh/id_dsa
Port 22
Protocol 2,1
Cipher blowfish
Cipher 3des
Ciphers aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes25
EscapeChar ~

As you can notice above, the connection is estabilished but then it hangs when accessing private key. So I thinked it was a key problem so i tried to delete them (private and public) but it didn't work yet. I tried to recreate the keys and put new public key on the fileserver, but it didn't work.

I also uninstalled the openssh package on fileserver and reinstalled it, so now i'm using default configuration for ssd. Nothing to do. it doesn't work.

Have you any idea? I need to access the fileserver from remote station, but i don't always have my laptop with me.

Thank you,
outburst
 
  


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
Linux sockets hang in FIN_WAIT1 state pavan Linux - Networking 2 06-19-2005 10:13 AM
ftp and ssh connections hang - network config? TreeHugger Linux - Networking 7 11-08-2004 10:55 AM
SSH client seems to simply hang jmielens Linux - Networking 25 09-02-2004 01:35 AM
SYN_RECV flood still happening with giptables micro_sucks Linux - Security 4 06-15-2004 07:24 PM
GeForce, Hang on boot, hang on X ctrl-alt-bspace bigearsbilly Linux - Hardware 0 03-01-2004 07:56 AM

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

All times are GMT -5. The time now is 10:42 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