Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

"SSH authentication or connection failure" in Linux/UNIX

nikhilagr20
Giga Contributor

Hi,

I have a Red Hat Linux Server in my environment. I have created a user with sudo privileges. When i am running discovery on it, it gives error "SSH authentication or connection failure". While I am able to login to this server via putty & able to run uname -a command successfully.

I have also enabled "debug_ssh = true" & "debug = true" in UNIX-Classify probe. Please find attached ssh.log file & screenshot of access given to user.

looking for a possitive reply.

Regards,
Nikhil Agarwal

17 REPLIES 17

doug_schulze
ServiceNow Employee

Is this a local account or are you maybe using a pass through authentication piece like centrify?

Also,

Can you attach the relevant portion of the agent0.log? And may as well open a ticket with support this may need direct eyes on it to get it resolved..


Hi Doug,

Issue has been resolved. Actually I have enabled "mid.ssh.use_keyboard_interactive" due to this, it gave ssh authentication failure error. after disabling it, I am able to discover.

Regards,
Nikhil Agarwal


Hi Doug,

I am running discovery on a AIX box. It gives error" SSH authentication or connection failure". When i debug the error, I found below error from agent.log file:

08/23/13 11:41:02 (181) Probe: SSHCommand:uname -a:192.194.143.240 Grabbed null
08/23/13 11:41:02 (181) Probe: SSHCommand:uname -a:192.194.143.240 A connection error has occured. Reconnecting.
08/23/13 11:41:04 (193) Probe: SSHCommand:uname -a:192.194.143.240 Waiting for connection semaphore
08/23/13 11:41:04 (193) Probe: SSHCommand:uname -a:192.194.143.240 Obtained connection semaphore
08/23/13 11:41:04 (287) Probe: SSHCommand:uname -a:192.194.143.240 SEVERE *** ERROR *** Exception from SSH: java.io.IOException; The socket is EOF
java.io.IOException: The socket is EOF
at com.sshtools.j2ssh.transport.TransportProtocolInputStream.readBufferedData(TransportProtocolInputStream.java:187)
at com.sshtools.j2ssh.transport.TransportProtocolInputStream.readMessage(TransportProtocolInputStream.java:234)
at com.sshtools.j2ssh.transport.TransportProtocolCommon.readMessage(TransportProtocolCommon.java:1340)
at com.sshtools.j2ssh.transport.kex.DhGroup1Sha1.performClientExchange(DhGroup1Sha1.java:188)
at com.sshtools.j2ssh.transport.TransportProtocolClient.performKeyExchange(TransportProtocolClient.java:353)
at com.sshtools.j2ssh.transport.TransportProtocolCommon.beginKeyExchange(TransportProtocolCommon.java:711)
at com.sshtools.j2ssh.transport.TransportProtocolCommon.onMsgKexInit(TransportProtocolCommon.java:1295)
at com.sshtools.j2ssh.transport.TransportProtocolCommon.startBinaryPacketProtocol(TransportProtocolCommon.java:1032)
at com.sshtools.j2ssh.transport.TransportProtocolCommon.run(TransportProtocolCommon.java:388)
at java.lang.Thread.run(Unknown Source)

08/23/13 11:41:04 (287) Probe: SSHCommand:uname -a:192.194.143.240 Grabbed null
08/23/13 11:41:04 (287) Probe: SSHCommand:uname -a:192.194.143.240 Worker completed: SSHCommand source: 192.194.143.240 time: 0:00:02.200
08/23/13 11:41:04 (287) Probe: MultiProbe:UNIX - Classify:192.194.143.240 Subprobe finished

Please check & provide a solution.

Regards,
Nikhil Agarwal


Has any one face this error?