MID Server Unable to Connect to SFTP – SSH Key Works Locally, Fails in ServiceNow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12 hours ago
Hi Community,
I’m trying to set up an SFTP data source in ServiceNow using a MID Server on the same Windows machine
Setup, I would really appreciate any guidance on why ServiceNow is refusing the connection and how to properly configure the MID Server SFTP connection.
SFTP & MID Server Connectivity Issue:
1. MID Server and SFTP server on the same Windows laptop; MID Server is running and validated.
2. SSH Key: Private key on MID Server; public key copied to SFTP user’s authorized_keys. SSH connection from MID Server works passwordlessly over local network (TcpTestSucceeded: True).
3. Permissions: Windows SYSTEM account (used by services) has full access to the private key file.
4. ServiceNow Credential: SSH Private Key created and validated.
5. Data Source:
Type: File, Format: CSV
Retrieval: SFTP
Configured: SFTP file path, private key path, MID Server selected, SFTP username, no password
Problem: On save or test load, MID Server field clears and password field auto-populates
Error:
com.glide.db.impex.datasource.DataSourceException: java.io.IOException: SSH authentication failed, Failed to connect TCP: Connection refused
