Skip to main content

Thread: ssh session hangs after a few seconds.


after update ssh sessions seem close after 10 seconds. not closing connection can server , w see sessions still active on server. can't in terminal screen. can switch putty on winders side , works fine. qemu ssh session this. i've tried serverkeepalive , not find on interwebs nothing seems working. reinstalled ssh , deleted /etc/ssh* no luck.

here output ssh

openssh_6.1p1 debian-4, openssl 1.0.1c 10 may 2012
debug2: ssh_connect: needpriv 0
debug1: connecting 192.168.3.30 [192.168.3.30] port 22.
debug1: connection established.
debug1: identity file /home/ray/.ssh/id_rsa type -1
debug1: identity file /home/ray/.ssh/id_rsa-cert type -1
debug1: identity file /home/ray/.ssh/id_dsa type -1
debug1: identity file /home/ray/.ssh/id_dsa-cert type -1
debug1: identity file /home/ray/.ssh/id_ecdsa type -1
debug1: identity file /home/ray/.ssh/id_ecdsa-cert type -1
debug1: remote protocol version 2.0, remote software version openssh_5.3
debug1: match: openssh_5.3 pat openssh_5*
debug1: enabling compatibility mode protocol 2.0
debug1: local version string ssh-2.0-openssh_6.1p1 debian-4
debug2: fd 3 setting o_nonblock
debug3: load_hostkeys: loading entries host "192.168.3.30" file "/home/ray/.ssh/known_hosts"
debug3: load_hostkeys: found key type rsa in file /home/ray/.ssh/known_hosts:1
debug3: load_hostkeys: loaded 1 keys
debug3: order_hostkeyalgs: prefer hostkeyalgs: ssh-rsa-cert-v01@openssh.com,ssh-rsa...00@openssh.com,ssh-rsa
debug1: ssh2_msg_kexinit sent
debug1: ssh2_msg_kexinit received
debug2: kex_parse_kexinit: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa-cert-v01@openssh.com,ssh-rsa...00@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-dss
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-sha2-256,hmac-sha2-512,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-sha2-256,hmac-sha2-512,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-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
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-ctr hmac-md5 none
debug2: mac_setup: found hmac-md5
debug1: kex: client->server aes128-ctr 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: 143/256
debug2: bits set: 532/1024
debug1: ssh2_msg_kex_dh_gex_init sent
debug1: expecting ssh2_msg_kex_dh_gex_reply
debug1: server host key: rsa 2e:8d:07:83:2c:00:6e:ae:3c:0d:0d:e1:6e:3b:cf:b2
debug3: load_hostkeys: loading entries host "192.168.3.30" file "/home/ray/.ssh/known_hosts"
debug3: load_hostkeys: found key type rsa in file /home/ray/.ssh/known_hosts:1
debug3: load_hostkeys: loaded 1 keys
debug1: host '192.168.3.30' known , matches rsa host key.
debug1: found key in /home/ray/.ssh/known_hosts:1
debug2: bits set: 521/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: roaming not allowed server
debug1: ssh2_msg_service_request sent
debug2: service_accept: ssh-userauth
debug1: ssh2_msg_service_accept received
debug2: key: /home/ray/.ssh/id_rsa ((nil))
debug2: key: /home/ray/.ssh/id_dsa ((nil))
debug2: key: /home/ray/.ssh/id_ecdsa ((nil))
debug1: authentications can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug3: start over, passed different list publickey,gssapi-keyex,gssapi-with-mic,password
debug3: preferred 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/ray/.ssh/id_rsa
debug3: no such identity: /home/ray/.ssh/id_rsa
debug1: trying private key: /home/ray/.ssh/id_dsa
debug3: no such identity: /home/ray/.ssh/id_dsa
debug1: trying private key: /home/ray/.ssh/id_ecdsa
debug3: no such identity: /home/ray/.ssh/id_ecdsa
debug2: did not send packet, disable method
debug3: authmethod_lookup password
debug3: remaining preferred: ,password
debug3: authmethod_is_enabled password
debug1: next authentication method: password
root@192.168.3.30's password:
debug3: packet_send2: adding 64 (len 55 padlen 9 extra_pad 64)
debug2: sent password packet, wait reply
debug1: authentication succeeded (password).
authenticated 192.168.3.30 ([192.168.3.30]:22).
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: send open
debug1: requesting no-more-sessions@openssh.com
debug1: entering interactive session.
debug2: callback start
debug2: fd 3 setting tcp_nodelay
debug3: packet_set_tos: set ip_tos 0x10
debug2: client_session2_setup: id 0
debug2: channel 0: request pty-req confirm 1
debug2: channel 0: request shell confirm 1
debug2: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug2: channel_input_status_confirm: type 99 id 0
debug2: pty allocation request accepted on channel 0
debug2: channel 0: rcvd adjust 2097152
debug2: channel_input_status_confirm: type 99 id 0
debug2: shell request accepted on channel 0

, hangs after 10 seconds , can't anything.

i have fixed problem. if else has problem here happened. let network-manager update when not use it. wrote on interfaces file , screwed up. had broadcast same ip , netmask @ /32. purged network-manager , redid files, normal. tell apt not install network-manager on upgrade.


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Networking & Wireless [ubuntu] ssh session hangs after a few seconds.


Ubuntu

Comments

Popular posts from this blog

Some mp4 files not displaying correctly (CS6)

Thread: Samba is not authenticating with LDAP