Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
SSHCommand: Cannot connect, status is TCP_CONNECTION_DROPPED - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • SSHCommand: Cannot connect, status is TCP_CONNECTION_DROPPED
KB0746193

SSHCommand: Cannot connect, status is TCP_CONNECTION_DROPPED


8221 Views Last updated : Jul 22, 2025 public Copy Permalink English (Original)
  • English (Original)
  • Japanese
KB Summary by Now Assist

Issue

SSHCommand: Cannot connect, status is TCP_CONNECTION_DROPPED

Release

All releases - MID Server Discovering a Linux system

Cause

Service rejected connection due to several reasons as described next.

Resolution

Attempt to reproduce the same conditions with a third-party ssh client such as openssh or putty from the MID server and confirm if it's successful.

  1. Inspect the security logs on the server to see if you can find any specific error: /var/log/secure
  2. Increase debugging on the server. For openssh, this typically means editing /etc/ssh/sshd_config, setting loglevel=debug3, and restarting sshd. Recreate the failure, then inspect the logs on the server /var/log/secure
  3. With openssh, run ssh with the "-vv" option to connect to the server. Look at the kexinit messages to see if they're abnormal in terms of supported algorithms.
  4. Turn on ssh debug from the sncssh ServiceNow ssh client by setting the mid parameter mid.ssh.debug = true , then reproduce the issue again. The agent/logs/agent0.log.* logs will have lots of debug info which will start with "Using SNC". This will be a whole lot of information, and will more than likely just show that they hung up on us for no obvious reason, but when they hung up may be instructive:
  • If they hung up after kexinit but before userauth that would indicate that the algorithm negotiations did not go well. Look at the kexinit messages and compare the list of algorithms for each thing, trying to find where the server's list has no items on the client's list.
  • If we get all the way to userauth, are the credentials tried the ones you expected? When did it give up?

The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.