Forum > Networking and Web Programming
Free SFTP client code for Mac?
AnthonyTekatch:
Is there a free SFTP client code/example that can be used in Lazarus/Freepascal on a Mac?
trev:
Apple does not have an API for either FTPS or SFTP, although on macOS you may be able to make some headway by invoking the sftp command-line tool.
AnthonyTekatch:
--- Quote from: trev on December 31, 2021, 02:15:32 am ---Apple does not have an API for either FTPS or SFTP, although on macOS you may be able to make some headway by invoking the sftp command-line tool.
--- End quote ---
I did get the command line running with Runncommand using the keygen password-free method, but in this case I need to sign into a server that I do not have the ssh key for and pass along the password to sftp. And, I read that it is frowned upon to be sending text passwords on the command line.
I suppose I can use the TProcess method for sending the password when asked.
PierceNg:
--- Quote from: AnthonyTekatch on December 31, 2021, 12:56:48 am ---Is there a free SFTP client code/example that can be used in Lazarus/Freepascal on a Mac?
--- End quote ---
Github lists three Delphi wrappers for libssh2. Not clear whether they work with FPC but good for reference if you are handy with FPC FFI.
* https://github.com/topics/libssh2?l=pascallibssh2 is known to work on MacOS.
AnthonyTekatch:
--- Quote from: PierceNg on December 31, 2021, 03:40:20 am ---Github lists three Delphi wrappers for libssh2. Not clear whether they work with FPC but good for reference if you are handy with FPC FFI.
* https://github.com/topics/libssh2?l=pascallibssh2 is known to work on MacOS.
--- End quote ---
Thank you for your suggestion. I'm not handy with FPC FFI, but I'll read about it anyway.
Navigation
[0] Message Index
[#] Next page