Cant ssh, but ping works

Tags
advanced, ca, cant open ssh, ping, ssh, works

Login to Reply

 
Thread Tools Search this Thread
# 15  
Old 2 Weeks Ago
I got this via tail from server
Code:
tail -f /var/log/auth.log
Nov 21 21:56:11 user1 sshd[8740]: debug1: kex: server->client aes128-ctr hmac-md5-etm@openssh.com none [prea
uth]
Nov 21 21:56:11 user1 sshd[8740]: debug1: expecting SSH2_MSG_KEX_ECDH_INIT [preauth]
Nov 21 21:56:33 user1 sshd[8740]: Connection closed by 10.10.50.1 [preauth]
Nov 21 21:56:33 user1 sshd[8740]: debug1: do_cleanup [preauth]
Nov 21 21:56:33 user1 sshd[8740]: debug3: PAM: sshpam_thread_cleanup entering [preauth]
Nov 21 21:56:33 user1 sshd[8740]: debug1: monitor_read_log: child log fd closed
Nov 21 21:56:33 user1 sshd[8740]: debug3: mm_request_receive entering
Nov 21 21:56:33 user1 sshd[8740]: debug1: do_cleanup
Nov 21 21:56:33 user1 sshd[8740]: debug3: PAM: sshpam_thread_cleanup entering
Nov 21 21:56:33 user1 sshd[8740]: debug1: Killing privsep child 8741
Nov 21 21:57:00 user1 sshd[8686]: debug3: fd 5 is not O_NONBLOCK
Nov 21 21:57:00 user1 sshd[8686]: debug1: Forked child 8760.
Nov 21 21:57:00 user1 sshd[8686]: debug3: send_rexec_state: entering fd = 8 config len 724
Nov 21 21:57:00 user1 sshd[8686]: debug3: ssh_msg_send: type 0
Nov 21 21:57:00 user1 sshd[8686]: debug3: send_rexec_state: done
Nov 21 21:57:00 user1 sshd[8760]: debug3: oom_adjust_restore
Nov 21 21:57:00 user1 sshd[8760]: Set /proc/self/oom_score_adj to 0
Nov 21 21:57:00 user1 sshd[8760]: debug1: rexec start in 5 out 5 newsock 5 pipe 7 sock 8
Nov 21 21:57:00 user1 sshd[8760]: debug1: inetd sockets after dupping: 3, 3
Nov 21 21:57:00 user1 sshd[8760]: Connection from 10.10.50.1 port 46509 on 10.10.50.6 port 22
Nov 21 21:57:00 user1 sshd[8760]: debug1: Client protocol version 2.0; client software version OpenSSH_6.6.1
p1 Ubuntu-2ubuntu2
Nov 21 21:57:00 user1 sshd[8760]: debug1: match: OpenSSH_6.6.1p1 Ubuntu-2ubuntu2 pat OpenSSH* compat 0x04000
000
Nov 21 21:57:00 user1 sshd[8760]: debug1: Enabling compatibility mode for protocol 2.0
Nov 21 21:57:00 user1 sshd[8760]: debug1: Local version string SSH-2.0-OpenSSH_6.6p1 Ubuntu-2ubuntu1
Nov 21 21:57:00 user1 sshd[8760]: debug2: fd 3 setting O_NONBLOCK
Nov 21 21:57:00 user1 sshd[8760]: debug2: Network child is on pid 8761
Nov 21 21:57:00 user1 sshd[8760]: debug3: preauth child monitor started
Nov 21 21:57:00 user1 sshd[8760]: debug3: privsep user:group 116:65534 [preauth]
Nov 21 21:57:00 user1 sshd[8760]: debug1: permanently_set_uid: 116/65534 [preauth]
Nov 21 21:57:00 user1 sshd[8760]: debug1: list_hostkey_types: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ssh-ed2551
9 [preauth]
Nov 21 21:57:00 user1 sshd[8760]: debug1: SSH2_MSG_KEXINIT sent [preauth]
Nov 21 21:57:00 user1 sshd[8760]: debug1: SSH2_MSG_KEXINIT received [preauth]
Nov 21 21:57:00 user1 sshd[8760]: debug2: kex_parse_kexinit: curve25519-sha256@libssh.org,ecdh-sha2-nistp256
,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,dif
fie-hellman-group14-sha1,diffie-hellman-group1-sha1 [preauth]
Nov 21 21:57:00 user1 sshd[8760]: debug2: kex_parse_kexinit: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ssh-ed25519
 [preauth]
Nov 21 21:57:00 user1 sshd[8760]: debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arc
four128,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,aes128-cbc,3des-cbc,blowfish-c
bc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se [preauth]
Nov 21 21:57:00 user1 sshd[8760]: debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arc
four128,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,aes128-cbc,3des-cbc,blowfish-c
bc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se [preauth]
Nov 21 21:57:00 user1 sshd[8760]: debug2: kex_parse_kexinit: hmac-md5-etm@openssh.com,hmac-sha1-etm@openssh.
com,umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,h
mac-ripemd160-etm@openssh.com,hmac-sha1-96-etm@openssh.com,hmac-md5-96-etm@openssh.com,hmac-md5,hmac-sha1,umac-64@
openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-9
6,hmac-md5-96 [preauth]
Nov 21 21:57:00 user1 sshd[8760]: debug2: kex_parse_kexinit: hmac-md5-etm@openssh.com,hmac-sha1-etm@openssh.
com,umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,h
mac-ripemd160-etm@openssh.com,hmac-sha1-96-etm@openssh.com,hmac-md5-96-etm@openssh.com,hmac-md5,hmac-sha1,umac-64@
openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-9
6,hmac-md5-96 [preauth]
Nov 21 21:57:00 user1 sshd[8760]: debug2: kex_parse_kexinit: none,zlib@openssh.com [preauth]
Nov 21 21:57:00 user1 sshd[8760]: debug2: kex_parse_kexinit: none,zlib@openssh.com [preauth]
Nov 21 21:57:00 user1 sshd[8760]: debug2: kex_parse_kexinit:  [preauth]
Nov 21 21:57:00 user1 sshd[8760]: debug2: kex_parse_kexinit:  [preauth]
Nov 21 21:57:00 user1 sshd[8760]: debug2: kex_parse_kexinit: first_kex_follows 0  [preauth]
Nov 21 21:57:00 user1 sshd[8760]: debug2: kex_parse_kexinit: reserved 0  [preauth]
Nov 21 21:57:00 user1 sshd[8760]: 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,diff
ie-hellman-group1-sha1 [preauth]
Nov 21 21:57:00 user1 sshd[8760]: debug2: kex_parse_kexinit: ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-
sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ssh-ed25519-cert-v01@openssh.com,ssh-r
sa-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,ssh-rsa-cert-v00@openssh.com,ssh-dss-cert-v00@openssh.com,ecd
sa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519,ssh-rsa,ssh-dss [preauth]
Nov 21 21:57:00 user1 sshd[8760]: debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arc
four128,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,aes128-cbc,3des-cbc,blowfish-c
bc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se [preauth]
Nov 21 21:57:00 user1 sshd[8760]: debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arc
four128,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,aes128-cbc,3des-cbc,blowfish-c
bc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se [preauth]
Nov 21 21:57:00 user1 sshd[8760]: debug2: kex_parse_kexinit: hmac-md5-etm@openssh.com,hmac-sha1-etm@openssh.
com,umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,h
mac-ripemd160-etm@openssh.com,hmac-sha1-96-etm@openssh.com,hmac-md5-96-etm@openssh.com,hmac-md5,hmac-sha1,umac-64@
openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-9
6,hmac-md5-96 [preauth]
Nov 21 21:57:00 user1 sshd[8760]: debug2: kex_parse_kexinit: hmac-md5-etm@openssh.com,hmac-sha1-etm@openssh.
com,umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,h
mac-ripemd160-etm@openssh.com,hmac-sha1-96-etm@openssh.com,hmac-md5-96-etm@openssh.com,hmac-md5,hmac-sha1,umac-64@
openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-9
6,hmac-md5-96 [preauth]
Nov 21 21:57:00 user1 sshd[8760]: debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib [preauth]
Nov 21 21:57:00 user1 sshd[8760]: debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib [preauth]
Nov 21 21:57:00 user1 sshd[8760]: debug2: kex_parse_kexinit:  [preauth]
Nov 21 21:57:00 user1 sshd[8760]: debug2: kex_parse_kexinit:  [preauth]
Nov 21 21:57:00 user1 sshd[8760]: debug2: kex_parse_kexinit: first_kex_follows 0  [preauth]
Nov 21 21:57:00 user1 sshd[8760]: debug2: kex_parse_kexinit: reserved 0  [preauth]
Nov 21 21:57:00 user1 sshd[8760]: debug2: mac_setup: setup hmac-md5-etm@openssh.com [preauth]
Nov 21 21:57:00 user1 sshd[8760]: debug1: kex: client->server aes128-ctr hmac-md5-etm@openssh.com none [prea
uth]
Nov 21 21:57:00 user1 sshd[8760]: debug2: mac_setup: setup hmac-md5-etm@openssh.com [preauth]
Nov 21 21:57:00 user1 sshd[8760]: debug1: kex: server->client aes128-ctr hmac-md5-etm@openssh.com none [prea
uth]
Nov 21 21:57:00 user1 sshd[8760]: debug1: expecting SSH2_MSG_KEX_ECDH_INIT [preauth]

# 16  
Old 2 Weeks Ago
Can you please post output of the following on the server :
Code:
uname -a
lsb_release -a

Also, can you run the following from client unable to connect (presuming clients are linux boxes)..
Code:
ping -M do -s 1472 <your ssh server>

Are you using VPN or behind firewalls ?

Regards
Peasant.

Last edited by Peasant; 2 Weeks Ago at 11:56 AM.. Reason: Typos
# 17  
Old 2 Weeks Ago
Can you post the output of the lastb command on the server running sshd (logged into server as root)?
Login to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Similar Threads More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Ssh on ping result? MuntyScrunt Shell Programming and Scripting 13 1 Week Ago 06:46 PM
SSh works but sftp doesn't for all users except root khalid khanAIB Shell Programming and Scripting 1 02-27-2018 11:33 AM
Not able to ssh or ping a server Vishal_dba AIX 4 12-28-2013 08:43 AM
Passwordless SSH works, scp does not corrado33 UNIX for Dummies Questions & Answers 4 12-20-2013 05:21 AM
Network issue on multinic. Unable to ping a host from One NIC but other works khaniqshahid Solaris 3 05-17-2013 02:30 AM
SCP not working while SSH works posix Solaris 5 12-23-2011 09:54 AM
SSH key works from CMD line not script jeffsandman0035 UNIX for Advanced & Expert Users 6 07-21-2011 03:01 PM
$USER is not set in remsh but works fine via ssh login reldb UNIX for Dummies Questions & Answers 10 01-18-2011 08:44 PM
script to monitor if ssh works. nua7 UNIX for Advanced & Expert Users 2 08-09-2010 05:14 AM
Ping = no, SSH = eventually. Next step? abstractrick Solaris 2 08-03-2010 02:45 AM
scp not working while ssh works bakunin AIX 4 05-13-2010 03:19 AM
SSH login hangs, serial console works ivar.zarans AIX 2 04-13-2010 03:45 AM
could not ssh and ping jegaraman Solaris 11 05-20-2009 08:58 AM
could not ssh and ping jegaraman Solaris 5 10-23-2008 11:28 AM
Can't SSH / ping Linux box !!! csaha Linux 4 12-28-2006 06:34 AM
All times are GMT -4. The time now is 08:22 AM.

Unix & Linux Forums Content Copyright 1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password





Not a Forum Member?
Forgot Password?