Recent

Author Topic: SFTP support in FreePascal applications  (Read 9447 times)

vicot

  • Full Member
  • ***
  • Posts: 114
SFTP support in FreePascal applications
« on: January 22, 2016, 10:33:29 pm »
Hi,

I have noticed that there does not seem to be support for SFTP either in Synapse or in lNet, nor in any other free library.

From what I could find, the only FreePascal library that supports SFTP is Devart SecureBridge Components, but it's a commercial product.

Isn't there really any free SFTP library in the FreePascal ecosystem?

Thanks

--vicot

zeljko

  • Hero Member
  • *****
  • Posts: 1596
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: SFTP support in FreePascal applications
« Reply #1 on: January 22, 2016, 10:41:14 pm »
Yes, I'm using libssh2 from synapse for that purpose

vicot

  • Full Member
  • ***
  • Posts: 114
Re: SFTP support in FreePascal applications
« Reply #2 on: January 22, 2016, 10:43:00 pm »
Does it work well?
Is it easy to set up and use?
Any good tutorials / examples?

Graeme

  • Hero Member
  • *****
  • Posts: 1428
    • Graeme on the web
Re: SFTP support in FreePascal applications
« Reply #3 on: January 23, 2016, 01:21:14 am »
I have noticed that there does not seem to be support for SFTP either in Synapse or in lNet, nor in any other free library.
I'm affraid you have been misinformed. Indy 10 support secure client and server FTP components.

   http://www.indyproject.org/kb/index.html?howdoiuseftpwithssl.htm

Use the Indy 10 SVN URL for the latest code that works 100% with FPC 2.6.4 and FPC 3.0.
    https://svn.atozed.com:444/svn/Indy10/trunk

--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

vicot

  • Full Member
  • ***
  • Posts: 114
Re: SFTP support in FreePascal applications
« Reply #4 on: January 23, 2016, 08:03:51 am »
I have noticed that there does not seem to be support for SFTP either in Synapse or in lNet, nor in any other free library.
I'm affraid you have been misinformed. Indy 10 support secure client and server FTP components.

   http://www.indyproject.org/kb/index.html?howdoiuseftpwithssl.htm

Use the Indy 10 SVN URL for the latest code that works 100% with FPC 2.6.4 and FPC 3.0.
    https://svn.atozed.com:444/svn/Indy10/trunk



SFTP is different from FTP+SSL (which is called FTPS)

Thaddy

  • Hero Member
  • *****
  • Posts: 14382
  • Sensorship about opinions does not belong here.
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

zeljko

  • Hero Member
  • *****
  • Posts: 1596
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: SFTP support in FreePascal applications
« Reply #6 on: January 23, 2016, 10:23:28 am »
Does it work well?
Is it easy to set up and use?
Any good tutorials / examples?

Yes, it's pretty easy to use (you have C examples on net for sftp, they're easy to understand and translate to pascal).
Thaddy provided link for sources for you :)

Graeme

  • Hero Member
  • *****
  • Posts: 1428
    • Graeme on the web
Re: SFTP support in FreePascal applications
« Reply #7 on: January 23, 2016, 01:45:20 pm »
SFTP is different from FTP+SSL (which is called FTPS)
I believe Indy supports both.
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

edwinyzh

  • New Member
  • *
  • Posts: 43
Re: SFTP support in FreePascal applications
« Reply #8 on: April 17, 2019, 08:22:05 am »
SFTP is different from FTP+SSL (which is called FTPS)
I believe Indy supports both.

This is incorrect, Indy supports FTPS, not SFTP, see https://github.com/IndySockets/Indy/issues/253

Thaddy

  • Hero Member
  • *****
  • Posts: 14382
  • Sensorship about opinions does not belong here.
Re: SFTP support in FreePascal applications
« Reply #9 on: April 17, 2019, 08:56:49 am »
SFTP is different from FTP+SSL (which is called FTPS)
I believe Indy supports both.
It's FTP over SSH, not ssl...
FPC supports both.
Here's a link using synapse http://synapse.ararat.cz/files/contrib/sftp.zip
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

rvk

  • Hero Member
  • *****
  • Posts: 6169
Re: SFTP support in FreePascal applications
« Reply #10 on: April 17, 2019, 09:15:22 am »
Here's a link using synapse http://synapse.ararat.cz/files/contrib/sftp.zip
That one requires cl32.dll (CryptLib) which you might not be able to distribute with your program depending on the license.

But the same source can be made to work with libssh2 (which I think has a more liberate license policy).

https://forum.lazarus.freepascal.org/index.php/topic,28053.msg178389.html#msg178389

Remy Lebeau

  • Hero Member
  • *****
  • Posts: 1314
    • Lebeau Software
Re: SFTP support in FreePascal applications
« Reply #11 on: April 17, 2019, 10:11:21 pm »
SFTP is different from FTP+SSL (which is called FTPS)
It's FTP over SSH, not ssl...

vicot was referring to FTPS, which is indeed FTP over SSL/TLS, and is what Indy supports.  SFTP is FTP over SSH, which Indy does not support at this time.
Remy Lebeau
Lebeau Software - Owner, Developer
Internet Direct (Indy) - Admin, Developer (Support forum)

 

TinyPortal © 2005-2018