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.

Getting SFTP error for data source

Ravish Shetty
Tera Guru

Hello,

 

We are getting below error when trying to retrieve a file from SFTP.

Surprisingly this same data source works fine in Development but not in our QA servicenow environment. I manually entered the password in the data sources in both Development and QA data sources. These data sources do not use MID servers.

 

Edit: Issue is sporadic in QA right now. it works some times and does not work other times.

 

 

Screenshot 2026-04-01 095044.png

 

 

Thanks,

Ravish

3 REPLIES 3

Tanushree Maiti
Kilo Patron

Issue

SFTP data source connection fails with the error - com.glide.db.impex.datasource.DataSourceException: java.io.IOException: SSH authentication failed, SSH connected, but user not authenticated

 

Cause

 SFTP data source connection with SSH key-based authentication' is not supported by ServiceNow .

 

Resolution

 SFTP data source connection with SSH key-based authentication' is not supported by ServiceNow .

Use 'Username' and 'Password' authentication mechanism instead.

An Alternative would be to use the integration hub SFTP Step.

According to the documentation for SFTP step when using the sftp step  private key authentication can be used through the mid server.

 

Refer: KB0858701 SFTP data source connection fails - com.glide.db.impex.datasource.DataSourceException: jav... 

 

Also refer:

https://www.servicenow.com/community/servicenow-ai-platform-forum/ssh-authentication-or-connection-f...

 

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

Hello,

 

We are using username and password for SFTP here. It works in Development servicenow and not in QA using the same credentials.

We do not have SFTP in integration hub so unfortunately cannot use it.

Ravish Shetty
Tera Guru

bump