Failed to establish SSH connection to x.x.x.x Failed to establish SSH connection to x.x.x.x IO error received from remoteConnection reset [java.net.SocketException]

pavanyuvi
Kilo Contributor

Hi All,

we are working on service mapping for one of the Business service we are getting this issue.It is showing as Generic application.

We are getting this issue"Failed to establish SSH connection to x.x.x..x. Failed to establish SSH connection to x.x.x.x IO error received from remoteConnection reset [java.net.SocketException]"

Regards,

Pavan

3 REPLIES 3

tim_broberg
ServiceNow Employee
ServiceNow Employee

From the client's perspective, this means that the server hung up the phone after we connected.

This may mean a firewall shut down the connection, or we failed too many authentication attempts.

Some things you can try:

  1. See if you can connect with your usual ssh client. Login to your midserver and run ssh -vv username@servername <replace with your username and hostname>.
  2. Check server logs. Set loglevel to debug on the server (usually /etc/ssh/sshd_config), restart it, try your experiment again, and check the logs (usually in /vsar/log/secure)

Interested to hear what you find,
    - Tim.

yashwant
Tera Contributor

Hi @tim.broberg We had similar problem for one of the server and we did check and we didn't find any issue on the server side. We are able to ssh the server without any issue but running the show status command on the server, it is giving the same error. Can you please help me on this. 

Manuel Stimac
Mega Sage

Hi @pavanyuvi,

I would try the following first:

  1. Network access still valid (Firewalls open to discover the systems?)
  2. Review Credentials & test them
  3. Update Discovery/Service Mapping Patterns
  4. Check Agent.log & Wrapper.log from the MID Server at time of Discovery
  5. Debug the Pattern itself

Some of those checks are quite simple - I know - but I experienced really strange behaviors and at the end it was either some blocked traffic or wrong User/PWD. Hope this helps.

 

If this answer helps you please mark it as Helpful/Solution.
Thanks & Regards - Manuel

 


If my answer helped you, please mark it as Helpful/Solution.
Thanks & many Regards - Manuel