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.
SEVERE *** ERROR *** Exception from SSH: java.io.IOException; SCP returned an unexpected error: rror connecting to the server - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • SEVERE *** ERROR *** Exception from SSH: java.io.IOException; SCP returned an unexpected error: rror connecting to the server
KB0745148

SEVERE *** ERROR *** Exception from SSH: java.io.IOException; SCP returned an unexpected error: rror connecting to the server


1777 Views Last updated : Apr 7, 2024 public Copy Permalink
KB Summary by Now Assist

Issue

Symptoms

SEVERE *** ERROR *** Exception from SSH: java.io.IOException; SCP returned an unexpected error: rror connecting to the server

Steps to reproduce

01) Add MID server parameter mid.ssh.debug and set value to true.

02) Then run discovery on the Linux server.

You will see below errors from the mid server logs.

02/05/19 22:14:30 (248) Worker-Interactive:MultiProbe-5088248c1ba32f846ca087386e4bcb0a SSH DEBUG: Opened channel 0
 
02/05/19 22:14:30 (654) Worker-Interactive:MultiProbe-5088248c1ba32f846ca087386e4bcb0a SEVERE *** ERROR *** Exception from SSH: java.io.IOException; SCP returned an unexpected error: rror connecting to the server
 
java.io.IOException: SCP returned an unexpected error: rror connecting to the server
 
at com.sshtools.j2ssh.ScpClient$ScpChannel.waitForResponse(ScpClient.java:590)
 
at com.sshtools.j2ssh.ScpClient$ScpChannel.access$000(ScpClient.java:321)
 
at com.sshtools.j2ssh.ScpClient.put(ScpClient.java:197)
 

Cause

This is because of MID Server using the older version of SSH called j2ssh and thus error has been not encountered. You can refer to the following article about Migration from j2ssh to sncssh. 
https://community.servicenow.com/community?id=community_question&sys_id=04ec0b29db9cdbc01dcaf3231f9619eb . 
Error might mean that the set of algorithms the client offers are unacceptable to the server.

Resolution

Following below mentioned steps can help you get rid of this error. 
1. Go to MID Servers. 
2. Add property "mid.ssh.use_snc" 
3. Set the property to true. 


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.