What is the best way to send a file via SFTP?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-28-2022 07:36 AM
I have seen alot of articles about sending files via SFTP. I had high hopes for using the J2SSH library on my mid server, but I think that library is pretty outdated as it doesn't support the key exchange algorithm that the sFTP server requires.
See this KB article for a description of what I am encountering. This article indicates that I would not be able to use the J2SSH library. they suggest using SNC SSH, but that library has no documentation that I can see.
With that said, has anybody else found a reliable way, not using the J2SSH library, to send files to sFTP server?
- Labels:
-
Integrations

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-30-2022 05:08 AM
Hi Jon,
Check out the below links. It'll help you to upload file to SFTP server, but you'll have to use some other functions to retrieve files from the server.
Push .csv file from mid server to an SFTP location
Send Attachment to SFTP Location
Let me know if this helps or you're expecting any different ways to transfer via SFTP.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-16-2022 11:41 PM
If anyone is reading this in 2022,
Servicenow has added SFTP step as part of Flow Designer to send files to a SFTP location.
https://docs.servicenow.com/bundle/quebec-servicenow-platform/page/administer/flow-designer/reference/sftp-step.html
I would suggest to use this instead of custom scripting. Only con is that his needs Integration Hub Pro.