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



On 27/03/2008, Eike Lantzsch <zp6cge@xxxxxxx> 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


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: openssh 4.7p1 Debian-4, OpenSSL 0.9.8g hangs after authentication
    ... Openssh hangs from my workstation to any ssh-server including the workstation ... OK because the work fine on other machines. ... It should not make a difference but just to be sure, 'ssh ... ...
    (Debian-User)
  • Re: Recent OpenSSH releases not reading .bashrc for ssh commands
    ... their .bashrc will no longer get them without engaging in..... ... ssh can invoke bash without it then reading .bashrc. ... which svn", the .bashrc is no longer read. ... you're on RHEL 5, you've installed an updated OpenSSH, and you try to ...
    (comp.security.ssh)
  • Re: two SSH compatibility scenarios: can it work?
    ... We are required to use SSH to log into the Engineering lab machines. ... > server software displays this header upon telnet connection to port 22. ... I still use Windows on my notebook for application compatibility. ... > running OpenSSH 3.4p1. ...
    (comp.security.ssh)
  • Re: OpenSSH, Telnet, Windows Authentication and double-hops
    ... deployment on a Windows network. ... Does this mean that you are setting SSH port forwarding ... does not provide the other side with either a Kerberos ticket, ... We're focusing on the OpenSSH for Windows distribution. ...
    (comp.security.ssh)
  • Re: VNC not connecting over SSH tunnel
    ... I can't even ping it from the remote ssh server. ... The routing for the target workstation is different between the two ... systems (router and laptop). ... The ssh server is on the local subnet (a 192.168.x.x non-routable network) as are the workstation I'm trying to connect to and the laptop. ...
    (Debian-User)