[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: openssh 4.7p1 Debian-4, OpenSSL 0.9.8g hangs after authentication



On 27/03/2008, Eike Lantzsch <zp6cge@gmx.net> wrote:
> Hi:
>
>  Does somebody have a hint for me how to investigate this problem further:
>  Openssh hangs from my workstation to any ssh-server including the workstation
>  itself.
>  Using another client machine I can ssh into all machines allright, including
>  the Fawlty [(c)John Cleese] one. One has also installed Debian testing with
>  the very same version of openssh and openssl.
>
>  myuser@myworkstation:~$ ssh -vv -4 -2 -l myuser 192.168.0.40
[...]
>  debug2: service_accept: ssh-userauth
>  debug1: SSH2_MSG_SERVICE_ACCEPT received

I'd run strace on it.
When I do
  strace -f ssh -vv -4 -2 -l joostje muso.komputilo.org 2>strace.txt
then I see in strace.txt:
[...]
write(2, "debug2: service_accept: ssh-user"..., 38debug2:
service_accept: ssh-userauth
) = 38
write(2, "debug1: SSH2_MSG_SERVICE_ACCEPT "..., 42debug1:
SSH2_MSG_SERVICE_ACCEPT received
) = 42
write(2, "debug2: key: /home/joostje/.ssh/"..., 48debug2: key:
/home/joostje/.ssh/id_rsa ((nil))
) = 48
write(2, "debug2: key: /home/joostje/.ssh/"..., 51debug2: key:
/home/joostje/.ssh/id_dsa (0x55dff0)
) = 51
write(3, "o\243\302\260\251\5\264\215o\'}3N\341\354\225\'\215\213"..., 64) = 64
select(4, [3], NULL, NULL, NULL)        = 1 (in [3])
read(3, "d\265\232\322\'\v\215Md\370.t\2511\353\274\267G\212L\302"...,
8192) = 64
write(2, "debug1: Authentications that can"..., 63debug1:
Authentications that can continue: publickey,password
) = 63
[...]
In other words, my ssh writes two more debug statements right after
the last debug statements you see, without any system calls in
between.

So, basically, it seems like it is 'impossible' for ssh to hang just
at that point...
Would be interesting to see the strace output of your ssh.

After that it starts to write to fd 3, witch seems to be the
communication socket to the SSH server.

My versions:
ii  openssh-client           4.3p2-9                  Secure shell
client, an rlogin/rsh/rcp replacement
ii  openssh-server           4.3p2-9                  Secure shell
server, an rshd replacement
ii  openssl                  0.9.8c-4etch1            Secure Socket
Layer (SSL) binary and related cryptographic tools


Reply to: