Operating System - Linux
1828352 Members
3380 Online
109976 Solutions
New Discussion

Unable to connect to server via SSH

 
Jojo Castro
Regular Advisor

Unable to connect to server via SSH

Hi,

Can anyone interpret what does the error below means?
This is because we were not able to connect via ssh.
But can via ftp.

May 28 05:55:19 RCI01 auditd[2790]: Audit daemon rotating log files

May 28 10:56:25 RCI01 kernel: sshd[1778]: segfault at ffffffff9b163a80 rip 00000036e5c76337 rsp 00007fff9b163a78 error 4

May 28 10:56:46 RCI01 kernel: sshd[1792]: segfault at 0000000039ad7040 rip 00000036e5c76337 rsp 00007fff39ad7038 error 4

May 28 10:57:11 RCI01 kernel: sshd[1894]: segfault at 0000000036904220 rip 00000036e5c76337 rsp 00007fff36904218 error 4

May 28 11:01:37 RCI01 kernel: sshd[2241]: segfault at ffffffffe4633f50 rip 00000036e5c76337 rsp 00007fffe4633f48 error 4

May 28 11:03:28 RCI01 kernel: sshd[2419]: segfault at ffffffffb7566e80 rip 00000036e5c76337 rsp 00007fffb7566e78 error 4

May 28 11:24:58 RCI01 kernel: sshd[3941]: segfault at 0000000024b42460 rip 00000036e5c76337 rsp 00007fff24b42458 error 4

May 28 11:55:44 RCI01 kernel: sshd[6288]: segfault at 00000000276b0fc0 rip 00000036e5c76337 rsp 00007fff276b0fb8 error 4

May 28 11:56:08 RCI01 kernel: sshd[6308]: segfault at 000000000960ef20 rip 00000036e5c76337 rsp 00007fff0960ef18 error 4

May 28 11:57:14 RCI01 kernel: sshd[6438]: segfault at 000000006f81e130 rip 00000036e5c76337 rsp 00007fff6f81e128 error 4

May 28 12:04:53 RCI01 kernel: sshd[6999]: segfault at ffffffffa3ec47e0 rip 00000036e5c76337 rsp 00007fffa3ec47d8 error 4

May 28 12:09:46 RCI01 kernel: sshd[7321]: segfault at 000000004569afb0 rip 00000036e5c76337 rsp 00007fff4569afa8 error 4

May 28 12:10:24 RCI01 kernel: sshd[7384]: segfault at ffffffff9c3f2d10 rip 00000036e5c76337 rsp 00007fff9c3f2d08 error 4

May 28 12:11:04 RCI01 kernel: sshd[7412]: segfault at ffffffffb97c80e0 rip 00000036e5c76337 rsp 00007fffb97c80d8 error 4

May 28 12:12:26 RCI01 kernel: sshd[7558]: segfault at ffffffffa2d20630 rip 00000036e5c76337 rsp 00007fffa2d20628 error 4

May 28 12:18:43 RCI01 kernel: sshd[8106]: segfault at 00000000408fd210 rip 00000036e5c76337 rsp 00007fff408fd208 error 4

May 28 12:19:12 RCI01 kernel: sshd[8123]: segfault at 0000000056dda6f0 rip 00000036e5c76337 rsp 00007fff56dda6e8 error 4

May 28 12:19:46 RCI01 kernel: sshd[8155]: segfault at ffffffff95edbd70 rip 00000036e5c76337 rsp 00007fff95edbd68 error 4

May 28 12:19:58 RCI01 kernel: sshd[8167]: segfault at 000000001d45cd70 rip 00000036e5c76337 rsp 00007fff1d45cd68 error 4

May 28 12:20:02 RCI01 kernel: sshd[8172]: segfault at ffffffff8e5c5c30 rip 00000036e5c76337 rsp 00007fff8e5c5c28 error 4

May 28 12:23:25 RCI01 kernel: sshd[8451]: segfault at 0000000051869600 rip 00000036e5c76337 rsp 00007fff518695f8 error 4

May 28 12:23:28 RCI01 kernel: sshd[8459]: segfault at 000000004be76c10 rip 00000036e5c76337 rsp 00007fff4be76c08 error 4

3 REPLIES 3
Jojo Castro
Regular Advisor

Re: Unable to connect to server via SSH

When connecting to server, via ssh, here is the exact errors

[root@RCI02 ~]# ssh -v -l carl 10.137.31.201

OpenSSH_4.3P2 Debian-9, OpenSSL 0.9.8b 04 May 2006

debug1: Reading configuration data /etc/ssh/ssh_config

debug1: Applying options for *

debug1: Connecting to 10.137.31.201 [10.137.31.201] port 22.

debug1: Connection established.

debug1: permanently_set_uid: 0/0

debug1: identity file /root/.ssh/identity type -1

debug1: identity file /root/.ssh/id_rsa type -1

debug1: identity file /root/.ssh/id_dsa type -1

debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3

debug1: match: OpenSSH_4.3 pat OpenSSH*

debug1: Enabling compatibility mode for protocol 2.0

debug1: Local version string SSH-2.0-OpenSSH_4.3

debug1: SSH2_MSG_KEXINIT sent

debug1: SSH2_MSG_KEXINIT received

debug1: kex: server->client aes128-cbc hmac-md5 none

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

debug1: SSH2_MSG_KEX_DH_GEX_INIT sent

debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY

debug1: Host '10.137.31.201' is known and matches the RSA host key.

debug1: Found key in /root/.ssh/known_hosts:1

debug1: ssh_rsa_verify: signature correct

debug1: SSH2_MSG_NEWKEYS sent

debug1: expecting SSH2_MSG_NEWKEYS

debug1: SSH2_MSG_NEWKEYS received

debug1: SSH2_MSG_SERVICE_REQUEST sent

debug1: SSH2_MSG_SERVICE_ACCEPT received

Connection closed by 10.137.31.201
Jojo Castro
Regular Advisor

Re: Unable to connect to server via SSH

Additional info.

ssh -vvv -l carl 10.137.31.201
OpenSSH_3.9p1, OpenSSL 0.9.7a Feb 19 2003
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to 10.137.31.201 [10.137.31.201] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/identity type -1
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3
debug1: match: OpenSSH_4.3 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.9p1
debug2: fd 3 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit: 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,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,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib
debug2: kex_parse_kexinit: none,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-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,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,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_init: found hmac-md5
debug1: kex: server->client aes128-cbc hmac-md5 none
debug2: mac_init: 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: 128/256
debug2: bits set: 537/1024
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug3: check_host_in_hostfile: filename /root/.ssh/known_hosts
debug3: check_host_in_hostfile: match line 4
debug1: Host '10.137.31.201' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:4
debug2: bits set: 515/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: /root/.ssh/identity ((nil))
debug2: key: /root/.ssh/id_rsa ((nil))
debug2: key: /root/.ssh/id_dsa ((nil))
Connection closed by 10.137.31.201
smatador
Honored Contributor

Re: Unable to connect to server via SSH

Hi,
I will suspect a bug "segfault"
Googleise it.
https://bugzilla.redhat.com/show_bug.cgi?id=190003
http://osdir.com/ml/debian.devel.ssh/2005-10/msg00028.html
You could try to update some lib and openssh itself.
Hope it helps