SSH hangs


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users SSH hangs
# 1  
Old 10-16-2010
SSH hangs

Hi all,

At a little bit of loss here. I have a Linux box (Redhat Enterprise 4) that has been working flawlessly for a while, that is until late Tuesday when none of the users could ssh into it. The machine is in a DMZ over which I have no control of the network settings. Here is the debug output from both the client (which is an AIX 5.1 box, although from other types of client machines the results are the same) and the Linux server.

Client debug output:

Code:
/home/cjohnson [25] > ssh -vv xxx.xxx.xxx.xxx

OpenSSH_4.4p1, OpenSSL 0.9.6g 9 Aug 2002
debug1: Reading configuration data /usr/local/etc/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to 199.46.169.20 [199.46.169.20] port 22.
debug1: Connection established.
debug1: identity file /home/cjohnson/.ssh/identity type 0
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug2: key_type_from_name: unknown key type '-----END'
debug1: identity file /home/cjohnson/.ssh/id_rsa type 1
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug2: key_type_from_name: unknown key type '-----END'
debug1: identity file /home/cjohnson/.ssh/id_dsa type 2
debug1: Remote protocol version 2.0, remote software version OpenSSH_3.9p1
debug1: match: OpenSSH_3.9p1 pat OpenSSH_3.*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.4
debug2: fd 3 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent

Server debug output:

Code:
Oct 16 12:54:12 localhost sshd[6269]: debug3: fd 4 is not O_NONBLOCK
Oct 16 12:54:12 localhost sshd[6279]: debug1: rexec start in 4 out 4 newsock 4 pipe 7 sock 8
Oct 16 12:54:12 localhost sshd[6269]: debug1: Forked child 6279.
Oct 16 12:54:12 localhost sshd[6269]: debug3: send_rexec_state: entering fd = 8 config len 445
Oct 16 12:54:12 localhost sshd[6269]: debug3: ssh_msg_send: type 0
Oct 16 12:54:12 localhost sshd[6269]: debug3: send_rexec_state: done
Oct 16 12:54:12 localhost sshd[6279]: debug1: inetd sockets after dupping: 3, 3
Oct 16 12:54:12 localhost sshd[6279]: Connection from xxx.xxx.xxx.xxx port 34621
Oct 16 12:54:12 localhost sshd[6279]: debug1: Client protocol version 2.0; client software version OpenSSH_4.4
Oct 16 12:54:12 localhost sshd[6279]: debug1: match: OpenSSH_4.4 pat OpenSSH*
Oct 16 12:54:12 localhost sshd[6279]: debug1: Enabling compatibility mode for protocol 2.0
Oct 16 12:54:12 localhost sshd[6279]: debug1: Local version string SSH-2.0-OpenSSH_3.9p1
Oct 16 12:54:12 localhost sshd[6279]: debug2: fd 3 setting O_NONBLOCK
Oct 16 12:54:12 localhost sshd[6280]: debug3: privsep user:group 74:74
Oct 16 12:54:12 localhost sshd[6279]: debug2: Network child is on pid 6280
Oct 16 16:54:12 localhost sshd[6280]: debug1: permanently_set_uid: 74/74
Oct 16 12:54:12 localhost sshd[6279]: debug3: preauth child monitor started
Oct 16 16:54:12 localhost sshd[6280]: debug1: list_hostkey_types: ssh-rsa,ssh-dss
Oct 16 12:54:12 localhost sshd[6279]: debug3: mm_request_receive entering
Oct 16 16:54:12 localhost sshd[6280]: debug1: SSH2_MSG_KEXINIT sent

My initial guess is that the firewall is allowing the initial connection through on port 22 but then is denying any subsequent connection on non-privileged ports.

Anyone have any ideas?

I know both versions of ssh are old and should be updated but I have just rejoined this project and it is on my todo list.

I should note there have been no changes to the system at all.
# 2  
Old 10-16-2010
What happens when you try to establish a connection using userid and password instead of shared keys?
# 3  
Old 10-16-2010
Not using shared keys. Also tried the MTU packet frag fix, that didn't solve the problem either.
# 4  
Old 10-16-2010
Did you ever get a password prompt? (I assume you did not, is that right?)
# 5  
Old 10-16-2010
Neo,
Correct no password prompt, just hangs until it times out.
# 6  
Old 10-16-2010
Sounds like you guessed it right, a firewall rule might have been changed in the DMZ since you worked on the project.
# 7  
Old 10-16-2010
Neo,

Thanks for the quick replies.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

ssh problem - hangs and then wont connect

Got a Solaris 10 server with two interfaces - 10.0.110.233 and 10.0.111.233. I can ssh to 10.0.110.233 with no problems. But after a certain amount of time it just hangs. Nothing. Then if I try to ssh to 10.0.110.233 again - times out. But I can still ssh to 10.0.111.233. And I can still ping... (1 Reply)
Discussion started by: psychocandy
1 Replies

2. Solaris

Solaris ssh client hangs when connecting to another Solaris machine

Got a strange problem. I have 4 Solaris servers all configured the same, Solaris 10 x86 update 10. When I try to ssh from one Solaris 10 server to another server ssh hangs. I have an identical server and when I try this everything works fine. The weird thing is if I am root on the server... (1 Reply)
Discussion started by: ccj4467
1 Replies

3. Shell Programming and Scripting

ssh hangs on exit

Hi, Any workaround for this issue, since i am using one script to execute the remote script for several remote server, everything works fine except some of the servers process are hangs even its completed. ---Please help me to resolve this issue---- Script details are here.. Code:... (0 Replies)
Discussion started by: l_gshankar24
0 Replies

4. Shell Programming and Scripting

ssh hangs on exit

Hi, Any workaround for this issue, since i am using one script to execute the remote script for several remote server, everything works fine except some of the servers process are hangs even its completed. ---Please help me to resolve this issue---- Script details are here.. for... (2 Replies)
Discussion started by: l_gshankar24
2 Replies

5. Shell Programming and Scripting

Piped output from SSH tunnel hangs?

Hi All, When starting an SSH tunnel, piped output 'hangs' (on AIX) : ssh -Nf -Llocalhost:22000:server:22 proxy | cat -vet - ... hangs ... Does anybody know how to prevent this? Of course, in my script I don't use the tunnel as I do in the example above. In my script the call to ssh is... (7 Replies)
Discussion started by: whbos
7 Replies

6. AIX

SSH login hangs, serial console works

Server, running AIX 6.1 developed strange problem when logging in via SSH -- ssh client hangs without any error. It is possible to run commands on server, using ssh ("ssh servername ls -l" is OK) It is possible to log in normally, using serial console connected to server. It was possible to... (2 Replies)
Discussion started by: ivar.zarans
2 Replies

7. AIX

sysback hangs

I've set sysback to run in the cron daily to backup my servers to a nim servers SAN storage. Every once and a while the backup process hangs and the backup doesn't complete. When I check the processes the sysback processes are still running hours after sysback would normally end. I don't see any... (1 Reply)
Discussion started by: daveisme
1 Replies

8. UNIX for Advanced & Expert Users

ssh + clearcase hangs

Hi, prefix: cleartool is an clearcase command. clearcase is a control version tool I have setup a passwordless ssh connection between Unix machines A and B. I am executing a ssh command from Unix box 'A' to Unix box 'B' as follows. ssh username@B 'ls /home/username' This works perfectly... (2 Replies)
Discussion started by: sunilav
2 Replies

9. Shell Programming and Scripting

Grep hangs

Running it on SunOS 5.9 Generic_117171-09 sun4u sparc SUNW,Sun-Fire-V440 The grep will hang if ERRORS.txt file > 100 lines Thanks :confused: ERRORS=./ERRORS.txt EXCLUDEERRORFILE=./excludeERR.txt cat $ERRORS | while read ERROR_LINE do echo +++ $ERROR_LINE cat... (2 Replies)
Discussion started by: zam
2 Replies

10. Slackware

Fedora (C2) Hangs

Anyone else notice Fedora Core 2 (both 2.6.5 and .8 kernels) hang, specifically when running konqueror? I notice a lot of HD activity, but by the time I can switch to a shell to use top it's over. (1 Reply)
Discussion started by: Karma
1 Replies
Login or Register to Ask a Question