Recent

Author Topic: how to tie SFTP to a TTelnetSSHClient in synapse  (Read 205 times)

mas steindorff

  • Sr. Member
  • ****
  • Posts: 397
how to tie SFTP to a TTelnetSSHClient in synapse
« on: November 30, 2018, 01:01:40 am »
Hello, I’m trying to code a program that will support SFTP using synapse.  Network support is new for me but Pascal is my programming lang of choice.   One task the program is to do is to transfer a pre-selected set of files from a ubuntu box to windows.  I have picked the SFTP protocol because it works with winSCP and there were topics on how to get it to work like

"SFTP support in FreePascal applications"
http://forum.lazarus.freepascal.org/index.php/topic,31192.msg199493.html#msg199493

I gotten the SSH part working (with SSHClient demo as reference) and I’m also able to ping by adding the “pingsend” unit. Now I need to add file transfer.  Is there a synapse class I can use for the file transfer? FYI: In another demo, I got a FTPSend unit with a TFTPSend class defined but I do not know how to link it to the TTelnetSSHClient I have working.

Thank you 
Mas
windows 7/10 - laz v1.2.6 fpc 2.6.4 & 2.0RC2