FTP Over SSH (SFTP) In delphi 2010

僤鯓⒐⒋嵵緔 提交于 2019-11-26 22:17:29

问题


I'm writing a simple Delphi App to upload a few files to a SFTP Server. i thought i would be able to use a TIdFTP indy client but it seams as tho their is not an option for FTP Over SSH (SFTP) does anyone know of any Free / Open source Components for Delphi 2010 that would support FTP over SSH (SFTP). Due to security reasons im unable to use Active X controls so please do not respond with Active X solutions.

Thanks for the help,

Kyle


回答1:


SFTP and "FTP over SSH" are two separate things, and neither involves SSL (as someone else has suggested). SFTP is a sub-protocol of SSH while "FTP over SSH" is good/bad ol' FTP tunnelled through an SSH connection with port forwarding.

Either way, what you're after is a Delphi SSH library. I was unable to find a free SSH library for Delphi and ended purchasing SecureBlackbox (http://www.eldos.com/), which is excellent by the way, although SecureBridge (http://www.devart.com) also looks pretty good.




回答2:


1) SFTP is NOT FTP-over-SSH. Read the discussion here.

2) For SFTP there are no free Delphi components. You can use our SFTP client and server components for Delphi (part of SecureBlackbox product), which are supported and maintained commercial solution.




回答3:


I've been using PuTTY's SCP command line utility, with catching it's standard out via the CreateProcess method.




回答4:


IP*Works include SFTP component - http://www.nsoftware.com/products/component/sftp.aspx and registered user of Delphi XE a XE2 can download this from code central (ID: 28437, ID: 28012)

and for Synapse is in contrib dir demo of simple SFTP - http://synapse.ararat.cz/files/contrib/




回答5:


Look at Synapse ( http://synapse.ararat.cz/doku.php/download ) suporting ssl protocole. Exemple code: http://synapse.ararat.cz/doku.php/public:howto:tcpwithssl




回答6:


Another secure connection component set is from nSoftware: http://www.nsoftware.com/ipworks/ssh/components.aspx

You get SSH Tunnel, and SFTP.

They also offer a full component set of SSL related items: http://www.nsoftware.com/ipworks/ssl/components.aspx




回答7:


libssh2 (wriiten in C) supports SFTP, and we have two separate Delphi wrappers (not sure which one is better):

https://github.com/pult/libssh2_delphi and https://github.com/dimmaq/delphi-libssh2

SecureBridge from DevArt also support SFTP, comes with full source for the Professional Editon.




回答8:


And since October 2019, there's a DLL fork of PuTTY with Delphi units, please see https://github.com/superflexible/TGPuttyLib

This was created to be able to achieve the highest possible transfer rates over SFTP. It's free and very easy to use (with examples).



来源:https://stackoverflow.com/questions/4235714/ftp-over-ssh-sftp-in-delphi-2010

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!