ssh freeze after authentication - SSH

This is a discussion on ssh freeze after authentication - SSH ; Hello, I'm trying to use ssh to connect two computer on my local network ... but something goes wrong. The two computers are running Ubuntu 8.04.1 and both versions of ssh are: OpenSSH_4.7p1 Debian-8ubuntu1.2, OpenSSL 0.9.8g 19 Oct 2007 When ...

+ Reply to Thread
Results 1 to 6 of 6

Thread: ssh freeze after authentication

  1. ssh freeze after authentication

    Hello,

    I'm trying to use ssh to connect two computer on my local network ...
    but something goes wrong.

    The two computers are running Ubuntu 8.04.1 and both versions of ssh are:

    OpenSSH_4.7p1 Debian-8ubuntu1.2, OpenSSL 0.9.8g 19 Oct 2007


    When I try to use ssh from one computer to the other, the authentication
    seems to work but ssh freeze before I get a working shell. When frozen,
    I'm unable to stop it using ^C and I'm oblige to kill it from an other
    window.

    I join to this message the logs of the client and of the server. Any
    insight would be appreciate as I'm totally lost.

    P.S. I add below what I get after I kill ssh on the client side
    (it may be helpfull)

    debug1: channel 0: free: client-session, nchannels 1
    debug3: channel 0: status: The following connections are open:
    #0 client-session (t4 r0 i0/0 o0/0 fd 4/5 cfd -1)

    debug3: channel 0: close_fds r 4 w 5 e 6 c -1
    debug1: Killed by signal 15.

    --

    LD.

    ssh -vvv laurent@gromit
    OpenSSH_4.7p1 Debian-8ubuntu1.2, OpenSSL 0.9.8g 19 Oct 2007
    debug1: Reading configuration data /etc/ssh/ssh_config
    debug1: Applying options for *
    debug2: ssh_connect: needpriv 0
    debug1: Connecting to gromit [192.168.0.9] port 22.
    debug1: Connection established.
    debug1: identity file /home/laurent/.ssh/identity type -1
    debug1: identity file /home/laurent/.ssh/id_rsa type -1
    debug1: identity file /home/laurent/.ssh/id_dsa type -1
    debug1: Remote protocol version 2.0, remote software version OpenSSH_4.7p1 Debian-8ubuntu1.2
    debug1: match: OpenSSH_4.7p1 Debian-8ubuntu1.2 pat OpenSSH*
    debug1: Enabling compatibility mode for protocol 2.0
    debug1: Local version string SSH-2.0-OpenSSH_4.7p1 Debian-8ubuntu1.2
    debug2: fd 3 setting O_NONBLOCK
    debug1: SSH2_MSG_KEXINIT sent
    debug1: SSH2_MSG_KEXINIT received
    debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
    debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
    debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
    debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
    debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
    debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
    debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
    debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
    debug2: kex_parse_kexinit:
    debug2: kex_parse_kexinit:
    debug2: kex_parse_kexinit: first_kex_follows 0
    debug2: kex_parse_kexinit: reserved 0
    debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
    debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
    debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
    debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
    debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
    debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
    debug2: kex_parse_kexinit: none,zlib@openssh.com
    debug2: kex_parse_kexinit: none,zlib@openssh.com
    debug2: kex_parse_kexinit:
    debug2: kex_parse_kexinit:
    debug2: kex_parse_kexinit: first_kex_follows 0
    debug2: kex_parse_kexinit: reserved 0
    debug2: mac_setup: found hmac-md5
    debug1: kex: server->client aes128-cbc hmac-md5 none
    debug2: mac_setup: found hmac-md5
    debug1: kex: client->server aes128-cbc hmac-md5 none
    debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
    debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
    debug2: dh_gen_key: priv key bits set: 111/256
    debug2: bits set: 530/1024
    debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
    debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
    debug3: check_host_in_hostfile: filename /home/laurent/.ssh/known_hosts
    debug3: check_host_in_hostfile: match line 2
    debug3: check_host_in_hostfile: filename /home/laurent/.ssh/known_hosts
    debug3: check_host_in_hostfile: match line 1
    debug1: Host 'gromit' is known and matches the RSA host key.
    debug1: Found key in /home/laurent/.ssh/known_hosts:2
    debug2: bits set: 493/1024
    debug1: ssh_rsa_verify: signature correct
    debug2: kex_derive_keys
    debug2: set_newkeys: mode 1
    debug1: SSH2_MSG_NEWKEYS sent
    debug1: expecting SSH2_MSG_NEWKEYS
    debug2: set_newkeys: mode 0
    debug1: SSH2_MSG_NEWKEYS received
    debug1: SSH2_MSG_SERVICE_REQUEST sent
    debug2: service_accept: ssh-userauth
    debug1: SSH2_MSG_SERVICE_ACCEPT received
    debug2: key: /home/laurent/.ssh/identity ((nil))
    debug2: key: /home/laurent/.ssh/id_rsa ((nil))
    debug2: key: /home/laurent/.ssh/id_dsa ((nil))
    debug1: Authentications that can continue: publickey,password
    debug3: start over, passed a different list publickey,password
    debug3: preferred gssapi-keyex,gssapi-with-mic,gssapi,publickey,keyboard-interactive,password
    debug3: authmethod_lookup publickey
    debug3: remaining preferred: keyboard-interactive,password
    debug3: authmethod_is_enabled publickey
    debug1: Next authentication method: publickey
    debug1: Trying private key: /home/laurent/.ssh/identity
    debug3: no such identity: /home/laurent/.ssh/identity
    debug1: Trying private key: /home/laurent/.ssh/id_rsa
    debug3: no such identity: /home/laurent/.ssh/id_rsa
    debug1: Trying private key: /home/laurent/.ssh/id_dsa
    debug3: no such identity: /home/laurent/.ssh/id_dsa
    debug2: we did not send a packet, disable method
    debug3: authmethod_lookup password
    debug3: remaining preferred: ,password
    debug3: authmethod_is_enabled password
    debug1: Next authentication method: password
    laurent@gromit's password:
    debug3: packet_send2: adding 64 (len 59 padlen 5 extra_pad 64)
    debug2: we sent a password packet, wait for reply
    debug1: Authentication succeeded (password).
    debug1: channel 0: new [client-session]
    debug3: ssh_session2_open: channel_new: 0
    debug2: channel 0: send open
    debug1: Entering interactive session.
    debug2: callback start
    debug2: client_session2_setup: id 0
    debug2: channel 0: request pty-req confirm 0
    debug3: tty_make_modes: ospeed 38400
    debug3: tty_make_modes: ispeed 38400
    debug3: tty_make_modes: 1 3
    debug3: tty_make_modes: 2 28
    debug3: tty_make_modes: 3 127
    debug3: tty_make_modes: 4 21
    debug3: tty_make_modes: 5 4
    debug3: tty_make_modes: 6 255
    debug3: tty_make_modes: 7 255
    debug3: tty_make_modes: 8 17
    debug3: tty_make_modes: 9 19
    debug3: tty_make_modes: 10 26
    debug3: tty_make_modes: 12 18
    debug3: tty_make_modes: 13 23
    debug3: tty_make_modes: 14 22
    debug3: tty_make_modes: 18 15
    debug3: tty_make_modes: 30 0
    debug3: tty_make_modes: 31 0
    debug3: tty_make_modes: 32 0
    debug3: tty_make_modes: 33 0
    debug3: tty_make_modes: 34 0
    debug3: tty_make_modes: 35 0
    debug3: tty_make_modes: 36 1
    debug3: tty_make_modes: 37 0
    debug3: tty_make_modes: 38 1
    debug3: tty_make_modes: 39 1
    debug3: tty_make_modes: 40 0
    debug3: tty_make_modes: 41 1
    debug3: tty_make_modes: 50 1
    debug3: tty_make_modes: 51 1
    debug3: tty_make_modes: 52 0
    debug3: tty_make_modes: 53 1
    debug3: tty_make_modes: 54 1
    debug3: tty_make_modes: 55 1
    debug3: tty_make_modes: 56 0
    debug3: tty_make_modes: 57 0
    debug3: tty_make_modes: 58 0
    debug3: tty_make_modes: 59 1
    debug3: tty_make_modes: 60 1
    debug3: tty_make_modes: 61 1
    debug3: tty_make_modes: 62 0
    debug3: tty_make_modes: 70 1
    debug3: tty_make_modes: 71 0
    debug3: tty_make_modes: 72 1
    debug3: tty_make_modes: 73 0
    debug3: tty_make_modes: 74 0
    debug3: tty_make_modes: 75 0
    debug3: tty_make_modes: 90 1
    debug3: tty_make_modes: 91 1
    debug3: tty_make_modes: 92 0
    debug3: tty_make_modes: 93 0
    debug1: Sending environment.
    debug3: Ignored env GPG_AGENT_INFO
    debug3: Ignored env SHELL
    debug3: Ignored env DESKTOP_STARTUP_ID
    debug3: Ignored env TERM
    debug3: Ignored env XDG_SESSION_COOKIE
    debug3: Ignored env GTK_RC_FILES
    debug3: Ignored env WINDOWID
    debug3: Ignored env USER
    debug3: Ignored env LS_COLORS
    debug3: Ignored env SSH_AUTH_SOCK
    debug3: Ignored env GNOME_KEYRING_SOCKET
    debug3: Ignored env SESSION_MANAGER
    debug3: Ignored env USERNAME
    debug3: Ignored env PATH
    debug3: Ignored env DESKTOP_SESSION
    debug3: Ignored env GDM_XSERVER_LOCATION
    debug3: Ignored env PWD
    debug1: Sending env LANG = fr_FR.UTF-8
    debug2: channel 0: request env confirm 0
    debug3: Ignored env GNOME_KEYRING_PID
    debug3: Ignored env GDM_LANG
    debug3: Ignored env GDMSESSION
    debug3: Ignored env HISTCONTROL
    debug3: Ignored env SHLVL
    debug3: Ignored env HOME
    debug3: Ignored env GNOME_DESKTOP_SESSION_ID
    debug3: Ignored env LOGNAME
    debug3: Ignored env XDG_DATA_DIRS
    debug3: Ignored env DBUS_SESSION_BUS_ADDRESS
    debug3: Ignored env LESSOPEN
    debug3: Ignored env WINDOWPATH
    debug3: Ignored env DISPLAY
    debug3: Ignored env LESSCLOSE
    debug3: Ignored env COLORTERM
    debug3: Ignored env XAUTHORITY
    debug3: Ignored env _
    debug2: channel 0: request shell confirm 0
    debug2: fd 3 setting TCP_NODELAY
    debug2: callback done
    debug2: channel 0: open confirm rwindow 0 rmax 32768

    sudo /usr/sbin/sshd -ddd
    debug2: load_server_config: filename /etc/ssh/sshd_config
    debug2: load_server_config: done config len = 659
    debug2: parse_server_config: config /etc/ssh/sshd_config len 659
    debug3: /etc/ssh/sshd_config:5 setting Port 22
    debug3: /etc/ssh/sshd_config:8 setting ListenAddress 0.0.0.0
    debug3: /etc/ssh/sshd_config:9 setting Protocol 2
    debug3: /etc/ssh/sshd_config:11 setting HostKey /etc/ssh/ssh_host_rsa_key
    debug3: /etc/ssh/sshd_config:12 setting HostKey /etc/ssh/ssh_host_dsa_key
    debug3: /etc/ssh/sshd_config:14 setting UsePrivilegeSeparation yes
    debug3: /etc/ssh/sshd_config:17 setting KeyRegenerationInterval 3600
    debug3: /etc/ssh/sshd_config:18 setting ServerKeyBits 768
    debug3: /etc/ssh/sshd_config:21 setting SyslogFacility AUTH
    debug3: /etc/ssh/sshd_config:22 setting LogLevel INFO
    debug3: /etc/ssh/sshd_config:25 setting LoginGraceTime 120
    debug3: /etc/ssh/sshd_config:26 setting PermitRootLogin yes
    debug3: /etc/ssh/sshd_config:27 setting StrictModes yes
    debug3: /etc/ssh/sshd_config:29 setting RSAAuthentication yes
    debug3: /etc/ssh/sshd_config:30 setting PubkeyAuthentication yes
    debug3: /etc/ssh/sshd_config:34 setting IgnoreRhosts yes
    debug3: /etc/ssh/sshd_config:36 setting RhostsRSAAuthentication no
    debug3: /etc/ssh/sshd_config:38 setting HostbasedAuthentication no
    debug3: /etc/ssh/sshd_config:43 setting PermitEmptyPasswords no
    debug3: /etc/ssh/sshd_config:47 setting ChallengeResponseAuthentication no
    debug3: /etc/ssh/sshd_config:62 setting X11Forwarding yes
    debug3: /etc/ssh/sshd_config:63 setting X11DisplayOffset 10
    debug3: /etc/ssh/sshd_config:64 setting PrintMotd no
    debug3: /etc/ssh/sshd_config:65 setting PrintLastLog yes
    debug3: /etc/ssh/sshd_config:66 setting TCPKeepAlive yes
    debug3: /etc/ssh/sshd_config:73 setting AcceptEnv LANG LC_*
    debug3: /etc/ssh/sshd_config:75 setting Subsystem sftp /usr/lib/openssh/sftp-server
    debug3: /etc/ssh/sshd_config:77 setting UsePAM yes
    debug1: sshd version OpenSSH_4.7p1 Debian-8ubuntu1.2
    debug3: Not a RSA1 key file /etc/ssh/ssh_host_rsa_key.
    debug1: read PEM private key done: type RSA
    debug1: Checking blacklist file /etc/ssh/blacklist.RSA-1024
    debug1: private host key: #0 type 1 RSA
    debug3: Not a RSA1 key file /etc/ssh/ssh_host_dsa_key.
    debug1: read PEM private key done: type DSA
    debug1: Checking blacklist file /etc/ssh/blacklist.DSA-1024
    debug1: private host key: #1 type 2 DSA
    debug1: rexec_argv[0]='/usr/sbin/sshd'
    debug1: rexec_argv[1]='-ddd'
    debug2: fd 3 setting O_NONBLOCK
    debug1: Bind to port 22 on 0.0.0.0.
    Server listening on 0.0.0.0 port 22.
    debug3: fd 4 is not O_NONBLOCK
    debug1: Server will not fork when running in debugging mode.
    debug3: send_rexec_state: entering fd = 7 config len 659
    debug3: ssh_msg_send: type 0
    debug3: send_rexec_state: done
    debug1: rexec start in 4 out 4 newsock 4 pipe -1 sock 7
    debug1: inetd sockets after dupping: 3, 3
    Connection from 192.168.0.10 port 36659
    debug1: Client protocol version 2.0; client software version OpenSSH_4.7p1 Debian-8ubuntu1.2
    debug1: match: OpenSSH_4.7p1 Debian-8ubuntu1.2 pat OpenSSH*
    debug1: Enabling compatibility mode for protocol 2.0
    debug1: Local version string SSH-2.0-OpenSSH_4.7p1 Debian-8ubuntu1.2
    debug2: fd 3 setting O_NONBLOCK
    debug3: privsep user:group 108:65534
    debug1: permanently_set_uid: 108/65534
    debug1: list_hostkey_types: ssh-rsa,ssh-dss
    debug1: SSH2_MSG_KEXINIT sent
    debug1: SSH2_MSG_KEXINIT received
    debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
    debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
    debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
    debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
    debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
    debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
    debug2: kex_parse_kexinit: none,zlib@openssh.com
    debug2: kex_parse_kexinit: none,zlib@openssh.com
    debug2: kex_parse_kexinit:
    debug2: kex_parse_kexinit:
    debug2: kex_parse_kexinit: first_kex_follows 0
    debug2: kex_parse_kexinit: reserved 0
    debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
    debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
    debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
    debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
    debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
    debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
    debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
    debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
    debug2: kex_parse_kexinit:
    debug2: kex_parse_kexinit:
    debug2: kex_parse_kexinit: first_kex_follows 0
    debug2: kex_parse_kexinit: reserved 0
    debug2: mac_setup: found hmac-md5
    debug1: kex: client->server aes128-cbc hmac-md5 none
    debug2: mac_setup: found hmac-md5
    debug1: kex: server->client aes128-cbc hmac-md5 none
    debug2: Network child is on pid 6573
    debug3: preauth child monitor started
    debug3: mm_request_receive entering
    debug1: SSH2_MSG_KEX_DH_GEX_REQUEST received
    debug3: mm_request_send entering: type 0
    debug3: mm_choose_dh: waiting for MONITOR_ANS_MODULI
    debug3: mm_request_receive_expect entering: type 1
    debug3: mm_request_receive entering
    debug3: monitor_read: checking request 0
    debug3: mm_answer_moduli: got parameters: 1024 1024 8192
    debug3: mm_request_send entering: type 1
    debug3: mm_choose_dh: remaining 0
    debug1: SSH2_MSG_KEX_DH_GEX_GROUP sent
    debug2: dh_gen_key: priv key bits set: 110/256
    debug2: bits set: 493/1024
    debug1: expecting SSH2_MSG_KEX_DH_GEX_INIT
    debug2: monitor_read: 0 used once, disabling now
    debug3: mm_request_receive entering
    debug2: bits set: 530/1024
    debug3: mm_key_sign entering
    debug3: mm_request_send entering: type 5
    debug3: mm_key_sign: waiting for MONITOR_ANS_SIGN
    debug3: mm_request_receive_expect entering: type 6
    debug3: mm_request_receive entering
    debug3: monitor_read: checking request 5
    debug3: mm_answer_sign
    debug3: mm_answer_sign: signature 0xb7fff380(143)
    debug3: mm_request_send entering: type 6
    debug1: SSH2_MSG_KEX_DH_GEX_REPLY sent
    debug2: kex_derive_keys
    debug2: set_newkeys: mode 1
    debug1: SSH2_MSG_NEWKEYS sent
    debug1: expecting SSH2_MSG_NEWKEYS
    debug2: monitor_read: 5 used once, disabling now
    debug3: mm_request_receive entering
    debug2: set_newkeys: mode 0
    debug1: SSH2_MSG_NEWKEYS received
    debug1: KEX done
    debug1: userauth-request for user laurent service ssh-connection method none
    debug1: attempt 0 failures 0
    debug3: mm_getpwnamallow entering
    debug3: mm_request_send entering: type 7
    debug3: mm_getpwnamallow: waiting for MONITOR_ANS_PWNAM
    debug3: mm_request_receive_expect entering: type 8
    debug3: mm_request_receive entering
    debug3: monitor_read: checking request 7
    debug3: mm_answer_pwnamallow
    debug3: Trying to reverse map address 192.168.0.10.
    debug2: parse_server_config: config reprocess config len 659
    debug3: mm_answer_pwnamallow: sending MONITOR_ANS_PWNAM: 1
    debug3: mm_request_send entering: type 8
    debug2: monitor_read: 7 used once, disabling now
    debug3: mm_request_receive entering
    debug2: input_userauth_request: setting up authctxt for laurent
    debug3: mm_start_pam entering
    debug3: mm_request_send entering: type 48
    debug3: mm_inform_authserv entering
    debug3: mm_request_send entering: type 3
    debug2: input_userauth_request: try method none
    debug3: mm_auth_password entering
    debug3: mm_request_send entering: type 11
    debug3: mm_auth_password: waiting for MONITOR_ANS_AUTHPASSWORD
    debug3: mm_request_receive_expect entering: type 12
    debug3: mm_request_receive entering
    debug3: monitor_read: checking request 48
    debug1: PAM: initializing for "laurent"
    debug1: PAM: setting PAM_RHOST to "laurent-laptop.local"
    debug1: PAM: setting PAM_TTY to "ssh"
    debug2: monitor_read: 48 used once, disabling now
    debug3: mm_request_receive entering
    debug3: monitor_read: checking request 3
    debug3: mm_answer_authserv: service=ssh-connection, style=, role=
    debug2: monitor_read: 3 used once, disabling now
    debug3: mm_request_receive entering
    debug3: monitor_read: checking request 11
    debug3: mm_answer_authpassword: sending result 0
    debug3: mm_request_send entering: type 12
    Failed none for laurent from 192.168.0.10 port 36659 ssh2
    debug3: mm_request_receive entering
    debug3: mm_auth_password: user not authenticated
    debug1: userauth-request for user laurent service ssh-connection method password
    debug1: attempt 1 failures 1
    debug2: input_userauth_request: try method password
    debug3: mm_auth_password entering
    debug3: mm_request_send entering: type 11
    debug3: mm_auth_password: waiting for MONITOR_ANS_AUTHPASSWORD
    debug3: mm_request_receive_expect entering: type 12
    debug3: mm_request_receive entering
    debug3: monitor_read: checking request 11
    debug3: PAM: sshpam_passwd_conv called with 1 messages
    debug1: PAM: password authentication accepted for laurent
    debug3: mm_answer_authpassword: sending result 1
    debug3: mm_request_send entering: type 12
    debug3: mm_request_receive_expect entering: type 49
    debug3: mm_request_receive entering
    debug3: mm_auth_password: user authenticated
    debug3: mm_do_pam_account entering
    debug3: mm_request_send entering: type 49
    debug3: mm_request_receive_expect entering: type 50
    debug3: mm_request_receive entering
    debug1: do_pam_account: called
    debug3: PAM: do_pam_account pam_acct_mgmt = 0 (Success)
    debug3: mm_request_send entering: type 50
    Accepted password for laurent from 192.168.0.10 port 36659 ssh2
    debug1: monitor_child_preauth: laurent has been authenticated by privileged process
    debug3: mm_get_keystate: Waiting for new keys
    debug3: mm_request_receive_expect entering: type 25
    debug3: mm_request_receive entering
    debug3: mm_do_pam_account returning 1
    debug3: mm_send_keystate: Sending new keys: 0xb7fff8a8 0xb7fff640
    debug3: mm_newkeys_to_blob: converting 0xb7fff8a8
    debug3: mm_newkeys_to_blob: converting 0xb7fff640
    debug3: mm_send_keystate: New keys have been sent
    debug3: mm_send_keystate: Sending compression state
    debug3: mm_request_send entering: type 25
    debug3: mm_send_keystate: Finished sending state
    debug3: mm_newkeys_from_blob: 0xb8003018(118)
    debug2: mac_setup: found hmac-md5
    debug3: mm_get_keystate: Waiting for second key
    debug3: mm_newkeys_from_blob: 0xb8003018(118)
    debug2: mac_setup: found hmac-md5
    debug3: mm_get_keystate: Getting compression state
    debug3: mm_get_keystate: Getting Network I/O buffers
    debug3: mm_share_sync: Share sync
    debug3: mm_share_sync: Share sync end
    debug3: PAM: opening session
    debug3: PAM: sshpam_store_conv called with 1 messages
    debug1: PAM: establishing credentials
    debug1: permanently_set_uid: 1000/1000
    debug1: SELinux support disabled
    debug2: set_newkeys: mode 0
    debug2: set_newkeys: mode 1
    debug1: Entering interactive session for SSH2.
    debug2: fd 6 setting O_NONBLOCK
    debug2: fd 7 setting O_NONBLOCK
    debug1: server_init_dispatch_20
    debug1: server_input_channel_open: ctype session rchan 0 win 1048576 max 16384
    debug1: input_session_request
    debug1: channel 0: new [server-session]
    debug1: session_new: init
    debug1: session_new: session 0
    debug1: session_open: channel 0
    debug1: session_open: session 0: link with channel 0
    debug1: server_input_channel_open: confirm session
    debug2: User child is on pid 6574
    debug3: mm_request_receive entering


  2. Re: ssh freeze after authentication

    laurent User writes:

    >This is a multi-part message in MIME format.
    >--------------030902080400000107020807
    >Content-Type: text/plain; charset=ISO-8859-1; format=flowed
    >Content-Transfer-Encoding: 7bit


    >Hello,


    >I'm trying to use ssh to connect two computer on my local network ...
    >but something goes wrong.


    >The two computers are running Ubuntu 8.04.1 and both versions of ssh are:


    > OpenSSH_4.7p1 Debian-8ubuntu1.2, OpenSSL 0.9.8g 19 Oct 2007



    >When I try to use ssh from one computer to the other, the authentication
    >seems to work but ssh freeze before I get a working shell. When frozen,
    >I'm unable to stop it using ^C and I'm oblige to kill it from an other
    >window.


    It may have nothing to do with ssh. Once ssh has made the connection,
    everything is handed over to the login process. The problem may be there.
    Can you log in from the console of that other machine as that user?


    >I join to this message the logs of the client and of the server. Any
    >insight would be appreciate as I'm totally lost.


    >P.S. I add below what I get after I kill ssh on the client side
    > (it may be helpfull)


    > debug1: channel 0: free: client-session, nchannels 1
    > debug3: channel 0: status: The following connections are open:
    > #0 client-session (t4 r0 i0/0 o0/0 fd 4/5 cfd -1)


    > debug3: channel 0: close_fds r 4 w 5 e 6 c -1
    > debug1: Killed by signal 15.


    >--


    >LD.


    >--------------030902080400000107020807
    >Content-Type: text/plain;
    > name="ssh.log"
    >Content-Transfer-Encoding: 7bit
    >Content-Disposition: inline;
    > filename="ssh.log"


    >ssh -vvv laurent@gromit
    >OpenSSH_4.7p1 Debian-8ubuntu1.2, OpenSSL 0.9.8g 19 Oct 2007
    >debug1: Reading configuration data /etc/ssh/ssh_config
    >debug1: Applying options for *
    >debug2: ssh_connect: needpriv 0
    >debug1: Connecting to gromit [192.168.0.9] port 22.
    >debug1: Connection established.
    >debug1: identity file /home/laurent/.ssh/identity type -1
    >debug1: identity file /home/laurent/.ssh/id_rsa type -1
    >debug1: identity file /home/laurent/.ssh/id_dsa type -1
    >debug1: Remote protocol version 2.0, remote software version OpenSSH_4.7p1 Debian-8ubuntu1.2
    >debug1: match: OpenSSH_4.7p1 Debian-8ubuntu1.2 pat OpenSSH*
    >debug1: Enabling compatibility mode for protocol 2.0
    >debug1: Local version string SSH-2.0-OpenSSH_4.7p1 Debian-8ubuntu1.2
    >debug2: fd 3 setting O_NONBLOCK
    >debug1: SSH2_MSG_KEXINIT sent
    >debug1: SSH2_MSG_KEXINIT received
    >debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
    >debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
    >debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
    >debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
    >debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
    >debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
    >debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
    >debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
    >debug2: kex_parse_kexinit:
    >debug2: kex_parse_kexinit:
    >debug2: kex_parse_kexinit: first_kex_follows 0
    >debug2: kex_parse_kexinit: reserved 0
    >debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
    >debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
    >debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
    >debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
    >debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
    >debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
    >debug2: kex_parse_kexinit: none,zlib@openssh.com
    >debug2: kex_parse_kexinit: none,zlib@openssh.com
    >debug2: kex_parse_kexinit:
    >debug2: kex_parse_kexinit:
    >debug2: kex_parse_kexinit: first_kex_follows 0
    >debug2: kex_parse_kexinit: reserved 0
    >debug2: mac_setup: found hmac-md5
    >debug1: kex: server->client aes128-cbc hmac-md5 none
    >debug2: mac_setup: found hmac-md5
    >debug1: kex: client->server aes128-cbc hmac-md5 none
    >debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
    >debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
    >debug2: dh_gen_key: priv key bits set: 111/256
    >debug2: bits set: 530/1024
    >debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
    >debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
    >debug3: check_host_in_hostfile: filename /home/laurent/.ssh/known_hosts
    >debug3: check_host_in_hostfile: match line 2
    >debug3: check_host_in_hostfile: filename /home/laurent/.ssh/known_hosts
    >debug3: check_host_in_hostfile: match line 1
    >debug1: Host 'gromit' is known and matches the RSA host key.
    >debug1: Found key in /home/laurent/.ssh/known_hosts:2
    >debug2: bits set: 493/1024
    >debug1: ssh_rsa_verify: signature correct
    >debug2: kex_derive_keys
    >debug2: set_newkeys: mode 1
    >debug1: SSH2_MSG_NEWKEYS sent
    >debug1: expecting SSH2_MSG_NEWKEYS
    >debug2: set_newkeys: mode 0
    >debug1: SSH2_MSG_NEWKEYS received
    >debug1: SSH2_MSG_SERVICE_REQUEST sent
    >debug2: service_accept: ssh-userauth
    >debug1: SSH2_MSG_SERVICE_ACCEPT received
    >debug2: key: /home/laurent/.ssh/identity ((nil))
    >debug2: key: /home/laurent/.ssh/id_rsa ((nil))
    >debug2: key: /home/laurent/.ssh/id_dsa ((nil))
    >debug1: Authentications that can continue: publickey,password
    >debug3: start over, passed a different list publickey,password
    >debug3: preferred gssapi-keyex,gssapi-with-mic,gssapi,publickey,keyboard-interactive,password
    >debug3: authmethod_lookup publickey
    >debug3: remaining preferred: keyboard-interactive,password
    >debug3: authmethod_is_enabled publickey
    >debug1: Next authentication method: publickey
    >debug1: Trying private key: /home/laurent/.ssh/identity
    >debug3: no such identity: /home/laurent/.ssh/identity
    >debug1: Trying private key: /home/laurent/.ssh/id_rsa
    >debug3: no such identity: /home/laurent/.ssh/id_rsa
    >debug1: Trying private key: /home/laurent/.ssh/id_dsa
    >debug3: no such identity: /home/laurent/.ssh/id_dsa
    >debug2: we did not send a packet, disable method
    >debug3: authmethod_lookup password
    >debug3: remaining preferred: ,password
    >debug3: authmethod_is_enabled password
    >debug1: Next authentication method: password
    >laurent@gromit's password:
    >debug3: packet_send2: adding 64 (len 59 padlen 5 extra_pad 64)
    >debug2: we sent a password packet, wait for reply
    >debug1: Authentication succeeded (password).
    >debug1: channel 0: new [client-session]
    >debug3: ssh_session2_open: channel_new: 0
    >debug2: channel 0: send open
    >debug1: Entering interactive session.
    >debug2: callback start
    >debug2: client_session2_setup: id 0
    >debug2: channel 0: request pty-req confirm 0
    >debug3: tty_make_modes: ospeed 38400
    >debug3: tty_make_modes: ispeed 38400
    >debug3: tty_make_modes: 1 3
    >debug3: tty_make_modes: 2 28
    >debug3: tty_make_modes: 3 127
    >debug3: tty_make_modes: 4 21
    >debug3: tty_make_modes: 5 4
    >debug3: tty_make_modes: 6 255
    >debug3: tty_make_modes: 7 255
    >debug3: tty_make_modes: 8 17
    >debug3: tty_make_modes: 9 19
    >debug3: tty_make_modes: 10 26
    >debug3: tty_make_modes: 12 18
    >debug3: tty_make_modes: 13 23
    >debug3: tty_make_modes: 14 22
    >debug3: tty_make_modes: 18 15
    >debug3: tty_make_modes: 30 0
    >debug3: tty_make_modes: 31 0
    >debug3: tty_make_modes: 32 0
    >debug3: tty_make_modes: 33 0
    >debug3: tty_make_modes: 34 0
    >debug3: tty_make_modes: 35 0
    >debug3: tty_make_modes: 36 1
    >debug3: tty_make_modes: 37 0
    >debug3: tty_make_modes: 38 1
    >debug3: tty_make_modes: 39 1
    >debug3: tty_make_modes: 40 0
    >debug3: tty_make_modes: 41 1
    >debug3: tty_make_modes: 50 1
    >debug3: tty_make_modes: 51 1
    >debug3: tty_make_modes: 52 0
    >debug3: tty_make_modes: 53 1
    >debug3: tty_make_modes: 54 1
    >debug3: tty_make_modes: 55 1
    >debug3: tty_make_modes: 56 0
    >debug3: tty_make_modes: 57 0
    >debug3: tty_make_modes: 58 0
    >debug3: tty_make_modes: 59 1
    >debug3: tty_make_modes: 60 1
    >debug3: tty_make_modes: 61 1
    >debug3: tty_make_modes: 62 0
    >debug3: tty_make_modes: 70 1
    >debug3: tty_make_modes: 71 0
    >debug3: tty_make_modes: 72 1
    >debug3: tty_make_modes: 73 0
    >debug3: tty_make_modes: 74 0
    >debug3: tty_make_modes: 75 0
    >debug3: tty_make_modes: 90 1
    >debug3: tty_make_modes: 91 1
    >debug3: tty_make_modes: 92 0
    >debug3: tty_make_modes: 93 0
    >debug1: Sending environment.
    >debug3: Ignored env GPG_AGENT_INFO
    >debug3: Ignored env SHELL
    >debug3: Ignored env DESKTOP_STARTUP_ID
    >debug3: Ignored env TERM
    >debug3: Ignored env XDG_SESSION_COOKIE
    >debug3: Ignored env GTK_RC_FILES
    >debug3: Ignored env WINDOWID
    >debug3: Ignored env USER
    >debug3: Ignored env LS_COLORS
    >debug3: Ignored env SSH_AUTH_SOCK
    >debug3: Ignored env GNOME_KEYRING_SOCKET
    >debug3: Ignored env SESSION_MANAGER
    >debug3: Ignored env USERNAME
    >debug3: Ignored env PATH
    >debug3: Ignored env DESKTOP_SESSION
    >debug3: Ignored env GDM_XSERVER_LOCATION
    >debug3: Ignored env PWD
    >debug1: Sending env LANG = fr_FR.UTF-8
    >debug2: channel 0: request env confirm 0
    >debug3: Ignored env GNOME_KEYRING_PID
    >debug3: Ignored env GDM_LANG
    >debug3: Ignored env GDMSESSION
    >debug3: Ignored env HISTCONTROL
    >debug3: Ignored env SHLVL
    >debug3: Ignored env HOME
    >debug3: Ignored env GNOME_DESKTOP_SESSION_ID
    >debug3: Ignored env LOGNAME
    >debug3: Ignored env XDG_DATA_DIRS
    >debug3: Ignored env DBUS_SESSION_BUS_ADDRESS
    >debug3: Ignored env LESSOPEN
    >debug3: Ignored env WINDOWPATH
    >debug3: Ignored env DISPLAY
    >debug3: Ignored env LESSCLOSE
    >debug3: Ignored env COLORTERM
    >debug3: Ignored env XAUTHORITY
    >debug3: Ignored env _
    >debug2: channel 0: request shell confirm 0
    >debug2: fd 3 setting TCP_NODELAY
    >debug2: callback done
    >debug2: channel 0: open confirm rwindow 0 rmax 32768


    >--------------030902080400000107020807
    >Content-Type: text/plain;
    > name="sshd.log"
    >Content-Transfer-Encoding: 7bit
    >Content-Disposition: inline;
    > filename="sshd.log"


    > sudo /usr/sbin/sshd -ddd
    >debug2: load_server_config: filename /etc/ssh/sshd_config
    >debug2: load_server_config: done config len = 659
    >debug2: parse_server_config: config /etc/ssh/sshd_config len 659
    >debug3: /etc/ssh/sshd_config:5 setting Port 22
    >debug3: /etc/ssh/sshd_config:8 setting ListenAddress 0.0.0.0
    >debug3: /etc/ssh/sshd_config:9 setting Protocol 2
    >debug3: /etc/ssh/sshd_config:11 setting HostKey /etc/ssh/ssh_host_rsa_key
    >debug3: /etc/ssh/sshd_config:12 setting HostKey /etc/ssh/ssh_host_dsa_key
    >debug3: /etc/ssh/sshd_config:14 setting UsePrivilegeSeparation yes
    >debug3: /etc/ssh/sshd_config:17 setting KeyRegenerationInterval 3600
    >debug3: /etc/ssh/sshd_config:18 setting ServerKeyBits 768
    >debug3: /etc/ssh/sshd_config:21 setting SyslogFacility AUTH
    >debug3: /etc/ssh/sshd_config:22 setting LogLevel INFO
    >debug3: /etc/ssh/sshd_config:25 setting LoginGraceTime 120
    >debug3: /etc/ssh/sshd_config:26 setting PermitRootLogin yes
    >debug3: /etc/ssh/sshd_config:27 setting StrictModes yes
    >debug3: /etc/ssh/sshd_config:29 setting RSAAuthentication yes
    >debug3: /etc/ssh/sshd_config:30 setting PubkeyAuthentication yes
    >debug3: /etc/ssh/sshd_config:34 setting IgnoreRhosts yes
    >debug3: /etc/ssh/sshd_config:36 setting RhostsRSAAuthentication no
    >debug3: /etc/ssh/sshd_config:38 setting HostbasedAuthentication no
    >debug3: /etc/ssh/sshd_config:43 setting PermitEmptyPasswords no
    >debug3: /etc/ssh/sshd_config:47 setting ChallengeResponseAuthentication no
    >debug3: /etc/ssh/sshd_config:62 setting X11Forwarding yes
    >debug3: /etc/ssh/sshd_config:63 setting X11DisplayOffset 10
    >debug3: /etc/ssh/sshd_config:64 setting PrintMotd no
    >debug3: /etc/ssh/sshd_config:65 setting PrintLastLog yes
    >debug3: /etc/ssh/sshd_config:66 setting TCPKeepAlive yes
    >debug3: /etc/ssh/sshd_config:73 setting AcceptEnv LANG LC_*
    >debug3: /etc/ssh/sshd_config:75 setting Subsystem sftp /usr/lib/openssh/sftp-server
    >debug3: /etc/ssh/sshd_config:77 setting UsePAM yes
    >debug1: sshd version OpenSSH_4.7p1 Debian-8ubuntu1.2
    >debug3: Not a RSA1 key file /etc/ssh/ssh_host_rsa_key.
    >debug1: read PEM private key done: type RSA
    >debug1: Checking blacklist file /etc/ssh/blacklist.RSA-1024
    >debug1: private host key: #0 type 1 RSA
    >debug3: Not a RSA1 key file /etc/ssh/ssh_host_dsa_key.
    >debug1: read PEM private key done: type DSA
    >debug1: Checking blacklist file /etc/ssh/blacklist.DSA-1024
    >debug1: private host key: #1 type 2 DSA
    >debug1: rexec_argv[0]='/usr/sbin/sshd'
    >debug1: rexec_argv[1]='-ddd'
    >debug2: fd 3 setting O_NONBLOCK
    >debug1: Bind to port 22 on 0.0.0.0.
    >Server listening on 0.0.0.0 port 22.
    >debug3: fd 4 is not O_NONBLOCK
    >debug1: Server will not fork when running in debugging mode.
    >debug3: send_rexec_state: entering fd = 7 config len 659
    >debug3: ssh_msg_send: type 0
    >debug3: send_rexec_state: done
    >debug1: rexec start in 4 out 4 newsock 4 pipe -1 sock 7
    >debug1: inetd sockets after dupping: 3, 3
    >Connection from 192.168.0.10 port 36659
    >debug1: Client protocol version 2.0; client software version OpenSSH_4.7p1 Debian-8ubuntu1.2
    >debug1: match: OpenSSH_4.7p1 Debian-8ubuntu1.2 pat OpenSSH*
    >debug1: Enabling compatibility mode for protocol 2.0
    >debug1: Local version string SSH-2.0-OpenSSH_4.7p1 Debian-8ubuntu1.2
    >debug2: fd 3 setting O_NONBLOCK
    >debug3: privsep user:group 108:65534
    >debug1: permanently_set_uid: 108/65534
    >debug1: list_hostkey_types: ssh-rsa,ssh-dss
    >debug1: SSH2_MSG_KEXINIT sent
    >debug1: SSH2_MSG_KEXINIT received
    >debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
    >debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
    >debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
    >debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
    >debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
    >debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
    >debug2: kex_parse_kexinit: none,zlib@openssh.com
    >debug2: kex_parse_kexinit: none,zlib@openssh.com
    >debug2: kex_parse_kexinit:
    >debug2: kex_parse_kexinit:
    >debug2: kex_parse_kexinit: first_kex_follows 0
    >debug2: kex_parse_kexinit: reserved 0
    >debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
    >debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
    >debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
    >debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
    >debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
    >debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
    >debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
    >debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
    >debug2: kex_parse_kexinit:
    >debug2: kex_parse_kexinit:
    >debug2: kex_parse_kexinit: first_kex_follows 0
    >debug2: kex_parse_kexinit: reserved 0
    >debug2: mac_setup: found hmac-md5
    >debug1: kex: client->server aes128-cbc hmac-md5 none
    >debug2: mac_setup: found hmac-md5
    >debug1: kex: server->client aes128-cbc hmac-md5 none
    >debug2: Network child is on pid 6573
    >debug3: preauth child monitor started
    >debug3: mm_request_receive entering
    >debug1: SSH2_MSG_KEX_DH_GEX_REQUEST received
    >debug3: mm_request_send entering: type 0
    >debug3: mm_choose_dh: waiting for MONITOR_ANS_MODULI
    >debug3: mm_request_receive_expect entering: type 1
    >debug3: mm_request_receive entering
    >debug3: monitor_read: checking request 0
    >debug3: mm_answer_moduli: got parameters: 1024 1024 8192
    >debug3: mm_request_send entering: type 1
    >debug3: mm_choose_dh: remaining 0
    >debug1: SSH2_MSG_KEX_DH_GEX_GROUP sent
    >debug2: dh_gen_key: priv key bits set: 110/256
    >debug2: bits set: 493/1024
    >debug1: expecting SSH2_MSG_KEX_DH_GEX_INIT
    >debug2: monitor_read: 0 used once, disabling now
    >debug3: mm_request_receive entering
    >debug2: bits set: 530/1024
    >debug3: mm_key_sign entering
    >debug3: mm_request_send entering: type 5
    >debug3: mm_key_sign: waiting for MONITOR_ANS_SIGN
    >debug3: mm_request_receive_expect entering: type 6
    >debug3: mm_request_receive entering
    >debug3: monitor_read: checking request 5
    >debug3: mm_answer_sign
    >debug3: mm_answer_sign: signature 0xb7fff380(143)
    >debug3: mm_request_send entering: type 6
    >debug1: SSH2_MSG_KEX_DH_GEX_REPLY sent
    >debug2: kex_derive_keys
    >debug2: set_newkeys: mode 1
    >debug1: SSH2_MSG_NEWKEYS sent
    >debug1: expecting SSH2_MSG_NEWKEYS
    >debug2: monitor_read: 5 used once, disabling now
    >debug3: mm_request_receive entering
    >debug2: set_newkeys: mode 0
    >debug1: SSH2_MSG_NEWKEYS received
    >debug1: KEX done
    >debug1: userauth-request for user laurent service ssh-connection method none
    >debug1: attempt 0 failures 0
    >debug3: mm_getpwnamallow entering
    >debug3: mm_request_send entering: type 7
    >debug3: mm_getpwnamallow: waiting for MONITOR_ANS_PWNAM
    >debug3: mm_request_receive_expect entering: type 8
    >debug3: mm_request_receive entering
    >debug3: monitor_read: checking request 7
    >debug3: mm_answer_pwnamallow
    >debug3: Trying to reverse map address 192.168.0.10.
    >debug2: parse_server_config: config reprocess config len 659
    >debug3: mm_answer_pwnamallow: sending MONITOR_ANS_PWNAM: 1
    >debug3: mm_request_send entering: type 8
    >debug2: monitor_read: 7 used once, disabling now
    >debug3: mm_request_receive entering
    >debug2: input_userauth_request: setting up authctxt for laurent
    >debug3: mm_start_pam entering
    >debug3: mm_request_send entering: type 48
    >debug3: mm_inform_authserv entering
    >debug3: mm_request_send entering: type 3
    >debug2: input_userauth_request: try method none
    >debug3: mm_auth_password entering
    >debug3: mm_request_send entering: type 11
    >debug3: mm_auth_password: waiting for MONITOR_ANS_AUTHPASSWORD
    >debug3: mm_request_receive_expect entering: type 12
    >debug3: mm_request_receive entering
    >debug3: monitor_read: checking request 48
    >debug1: PAM: initializing for "laurent"
    >debug1: PAM: setting PAM_RHOST to "laurent-laptop.local"
    >debug1: PAM: setting PAM_TTY to "ssh"
    >debug2: monitor_read: 48 used once, disabling now
    >debug3: mm_request_receive entering
    >debug3: monitor_read: checking request 3
    >debug3: mm_answer_authserv: service=ssh-connection, style=, role=
    >debug2: monitor_read: 3 used once, disabling now
    >debug3: mm_request_receive entering
    >debug3: monitor_read: checking request 11
    >debug3: mm_answer_authpassword: sending result 0
    >debug3: mm_request_send entering: type 12
    >Failed none for laurent from 192.168.0.10 port 36659 ssh2
    >debug3: mm_request_receive entering
    >debug3: mm_auth_password: user not authenticated
    >debug1: userauth-request for user laurent service ssh-connection method password
    >debug1: attempt 1 failures 1
    >debug2: input_userauth_request: try method password
    >debug3: mm_auth_password entering
    >debug3: mm_request_send entering: type 11
    >debug3: mm_auth_password: waiting for MONITOR_ANS_AUTHPASSWORD
    >debug3: mm_request_receive_expect entering: type 12
    >debug3: mm_request_receive entering
    >debug3: monitor_read: checking request 11
    >debug3: PAM: sshpam_passwd_conv called with 1 messages
    >debug1: PAM: password authentication accepted for laurent
    >debug3: mm_answer_authpassword: sending result 1
    >debug3: mm_request_send entering: type 12
    >debug3: mm_request_receive_expect entering: type 49
    >debug3: mm_request_receive entering
    >debug3: mm_auth_password: user authenticated
    >debug3: mm_do_pam_account entering
    >debug3: mm_request_send entering: type 49
    >debug3: mm_request_receive_expect entering: type 50
    >debug3: mm_request_receive entering
    >debug1: do_pam_account: called
    >debug3: PAM: do_pam_account pam_acct_mgmt = 0 (Success)
    >debug3: mm_request_send entering: type 50
    >Accepted password for laurent from 192.168.0.10 port 36659 ssh2
    >debug1: monitor_child_preauth: laurent has been authenticated by privileged process
    >debug3: mm_get_keystate: Waiting for new keys
    >debug3: mm_request_receive_expect entering: type 25
    >debug3: mm_request_receive entering
    >debug3: mm_do_pam_account returning 1
    >debug3: mm_send_keystate: Sending new keys: 0xb7fff8a8 0xb7fff640
    >debug3: mm_newkeys_to_blob: converting 0xb7fff8a8
    >debug3: mm_newkeys_to_blob: converting 0xb7fff640
    >debug3: mm_send_keystate: New keys have been sent
    >debug3: mm_send_keystate: Sending compression state
    >debug3: mm_request_send entering: type 25
    >debug3: mm_send_keystate: Finished sending state
    >debug3: mm_newkeys_from_blob: 0xb8003018(118)
    >debug2: mac_setup: found hmac-md5
    >debug3: mm_get_keystate: Waiting for second key
    >debug3: mm_newkeys_from_blob: 0xb8003018(118)
    >debug2: mac_setup: found hmac-md5
    >debug3: mm_get_keystate: Getting compression state
    >debug3: mm_get_keystate: Getting Network I/O buffers
    >debug3: mm_share_sync: Share sync
    >debug3: mm_share_sync: Share sync end
    >debug3: PAM: opening session
    >debug3: PAM: sshpam_store_conv called with 1 messages
    >debug1: PAM: establishing credentials
    >debug1: permanently_set_uid: 1000/1000
    >debug1: SELinux support disabled
    >debug2: set_newkeys: mode 0
    >debug2: set_newkeys: mode 1
    >debug1: Entering interactive session for SSH2.
    >debug2: fd 6 setting O_NONBLOCK
    >debug2: fd 7 setting O_NONBLOCK
    >debug1: server_init_dispatch_20
    >debug1: server_input_channel_open: ctype session rchan 0 win 1048576 max 16384
    >debug1: input_session_request
    >debug1: channel 0: new [server-session]
    >debug1: session_new: init
    >debug1: session_new: session 0
    >debug1: session_open: channel 0
    >debug1: session_open: session 0: link with channel 0
    >debug1: server_input_channel_open: confirm session
    >debug2: User child is on pid 6574
    >debug3: mm_request_receive entering


    >--------------030902080400000107020807--


  3. Re: ssh freeze after authentication

    Unruh a écrit :
    > laurent User writes:
    >
    >> This is a multi-part message in MIME format.
    >> --------------030902080400000107020807
    >> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
    >> Content-Transfer-Encoding: 7bit

    >
    >> Hello,

    >
    >> I'm trying to use ssh to connect two computer on my local network ...
    >> but something goes wrong.

    >
    >> The two computers are running Ubuntu 8.04.1 and both versions of ssh are:

    >
    >> OpenSSH_4.7p1 Debian-8ubuntu1.2, OpenSSL 0.9.8g 19 Oct 2007

    >
    >
    >> When I try to use ssh from one computer to the other, the authentication
    >> seems to work but ssh freeze before I get a working shell. When frozen,
    >> I'm unable to stop it using ^C and I'm oblige to kill it from an other
    >> window.

    >
    > It may have nothing to do with ssh. Once ssh has made the connection,
    > everything is handed over to the login process. The problem may be there.
    > Can you log in from the console of that other machine as that user?


    That was also my guess but I can log in as that user on the server side
    computer (on tty1 by example). Moreover, I can use ssh to log in on the
    computer from that same computer (not really usefull).

    The two computers are linked through a WIFI network. Could it be an
    explanation ?

    Second question : how can I find where the login process failed ?
    Nothing appears in my logs.

    --

    LD.

  4. Re: ssh freeze after authentication

    Laurent Dallois writes:

    >Unruh a écrit :
    >> laurent User writes:
    >>
    >>> This is a multi-part message in MIME format.
    >>> --------------030902080400000107020807
    >>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
    >>> Content-Transfer-Encoding: 7bit

    >>
    >>> Hello,

    >>
    >>> I'm trying to use ssh to connect two computer on my local network ...
    >>> but something goes wrong.

    >>
    >>> The two computers are running Ubuntu 8.04.1 and both versions of ssh are:

    >>
    >>> OpenSSH_4.7p1 Debian-8ubuntu1.2, OpenSSL 0.9.8g 19 Oct 2007

    >>
    >>
    >>> When I try to use ssh from one computer to the other, the authentication
    >>> seems to work but ssh freeze before I get a working shell. When frozen,
    >>> I'm unable to stop it using ^C and I'm oblige to kill it from an other
    >>> window.

    >>
    >> It may have nothing to do with ssh. Once ssh has made the connection,
    >> everything is handed over to the login process. The problem may be there.
    >> Can you log in from the console of that other machine as that user?


    >That was also my guess but I can log in as that user on the server side
    >computer (on tty1 by example). Moreover, I can use ssh to log in on the
    >computer from that same computer (not really usefull).


    >The two computers are linked through a WIFI network. Could it be an
    >explanation ?


    >Second question : how can I find where the login process failed ?
    >Nothing appears in my logs.


    >--


    Log onto the computer from the terminal. Then go to your other computer,
    log in via ssh, and come back and look at the bottom of the ps auxww list.
    You should see an sshd connected with that process. YOu should also see
    perhaps a login

    Now, just on the very very very off chance that you are being hit by the
    same sshd hosts.allow bug that I was, look at that new sshd Is it consuming
    100% (or 50%) of cpu resources? If so it may be that you have a long list
    of entries in the hosts.allow file for ssh.



  5. Re: ssh freeze after authentication

    Unruh a écrit :
    > Laurent Dallois writes:
    >
    >> Unruh a écrit :
    >>> laurent User writes:
    >>>
    >>>> This is a multi-part message in MIME format.
    >>>> --------------030902080400000107020807
    >>>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
    >>>> Content-Transfer-Encoding: 7bit
    >>>> Hello,
    >>>> I'm trying to use ssh to connect two computer on my local network ...
    >>>> but something goes wrong.
    >>>> The two computers are running Ubuntu 8.04.1 and both versions of ssh are:
    >>>> OpenSSH_4.7p1 Debian-8ubuntu1.2, OpenSSL 0.9.8g 19 Oct 2007
    >>>
    >>>> When I try to use ssh from one computer to the other, the authentication
    >>>> seems to work but ssh freeze before I get a working shell. When frozen,
    >>>> I'm unable to stop it using ^C and I'm oblige to kill it from an other
    >>>> window.
    >>> It may have nothing to do with ssh. Once ssh has made the connection,
    >>> everything is handed over to the login process. The problem may be there.
    >>> Can you log in from the console of that other machine as that user?

    >
    >> That was also my guess but I can log in as that user on the server side
    >> computer (on tty1 by example). Moreover, I can use ssh to log in on the
    >> computer from that same computer (not really usefull).

    >
    >> The two computers are linked through a WIFI network. Could it be an
    >> explanation ?

    >
    >> Second question : how can I find where the login process failed ?
    >> Nothing appears in my logs.

    >
    >> --

    >
    > Log onto the computer from the terminal. Then go to your other computer,
    > log in via ssh, and come back and look at the bottom of the ps auxww list.
    > You should see an sshd connected with that process. YOu should also see
    > perhaps a login
    >
    > Now, just on the very very very off chance that you are being hit by the
    > same sshd hosts.allow bug that I was, look at that new sshd Is it consuming
    > 100% (or 50%) of cpu resources? If so it may be that you have a long list
    > of entries in the hosts.allow file for ssh.
    >


    Right ! Great idea ! Let's see ...

    So, there is what I get

    root 6276 0.0 0.2 8032 2332 ? Ss 10:00 0:00 sshd: laurent [priv]
    laurent 6279 0.0 0.1 8032 1460 ? S 10:00 0:00 sshd: laurent

    If if I connect from the same computer I get

    laurent 6293 0.0 0.2 4984 2076 pts/1 S+ 10:01 0:00 ssh gromit
    root 6294 0.0 0.2 8032 2564 ? Ss 10:01 0:00 sshd: laurent [priv]
    laurent 6297 0.0 0.1 8176 1532 ? S 10:01 0:00 sshd: laurent@pts/2
    laurent 6298 0.0 0.1 4672 2052 pts/2 Rs 10:01 0:00 -bash

    First, my hosts.allow file is mostly empty, and sshd is not consuming
    all the CPU resources.

    Second, when I connect from the remote computer, no bash process are
    created. I will investigate my files to see if there is an error in my
    init files (login and bashrc) ...

    By extraordinary, do you now what means the minus sign in front of the
    bash ( -bash ) ?

    --

    LD.


  6. Re: ssh freeze after authentication

    On 2008-07-19, laurent User wrote:

    > By extraordinary, do you now what means the minus sign in front of the
    > bash ( -bash ) ?


    It's a login shell. login and "su -" let the shell know in that way that it
    needs to use the startup files related to logins. See the INVOCATION section
    of the bash man page.

    --
    Elvis Notargiacomo master AT barefaced DOT cheek
    http://www.notatla.org.uk/goen/

+ Reply to Thread