SFTP

For questions and postings not covered by the other forums
advaro
Posts: 19
Joined: Mon Oct 10, 2016 5:59 pm

SFTP

Postby advaro » Thu Jul 22, 2021 12:34 pm

Hi - we are having to jack up for an SFTP service (send and receive) for a client protected by a public/private key pair for sign on, encryption etc..
CardSchema only has FTP not SFTP.

They would need to be able to send files to us any time, so that would presumably mean a service running on he server, but we also need to send files to them also using SFTP, and this would be from within Jade.

The recommendation from someone 10+ years back in these forums was Rebex. https://www.rebex.net/file-server/ has anyone used it or something similar?
This looks to do away with setting up a service on the server, and the "server" is instead initiated in code, so the client connects directly to the application. Not sure if that would be better than installing a seperate SFTP service/application seperate from the Jade app or not...

Does anyone have any recommendation for the best way to do this?
Thanks in advance
Stephen

allistar
Posts: 156
Joined: Fri Aug 14, 2009 11:02 am
Location: Mount Maunganui, Tauranga

Re: SFTP

Postby allistar » Mon Jul 26, 2021 9:34 am

For security and robustness I would install a proper FTP server application rather than rolling your own or using a library. As far as the client side goes you could fairly easily use one of the many command line FTP clients out there and call that from Jade. For example, the FTP clients available for nodejs (using npm) are fairly easy to use and you could call these from Jade. Another approach is winscp which can be batched and scripted. I've used this from Jade to move database journals to servers that are secured using private/public key pairs. If you need interactivity or some kind of progress feedback then a closer integration using a library may be more suitable.


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 23 guests