Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FTP Over SSH (SFTP) In delphi 2010

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

like image 675
Kyle Avatar asked Nov 21 '10 00:11

Kyle


People also ask

Is SFTP FTP over SSH?

SFTP (SSH File Transfer Protocol) is a secure file transfer protocol. It runs over the SSH protocol. It supports the full security and authentication functionality of SSH. SFTP has pretty much replaced legacy FTP as a file transfer protocol, and is quickly replacing FTP/S.

Can you FTP over SSH?

FTP over SSH enables the secure transmission of files across the web. It works by first establishing an SSH tunnel between the client and the server. Once an SSH tunnel has been established, it is used by the File Transfer Protocol (FTP) to send data back and forth.

Can I connect to an FTP server with SFTP?

In order to make a secure connection to a FTP server, you can use any application that support SFTP. SFTP (commonly referred to as Secure File Transfer Protocol ) can perform secure file transfers. For secure transfers, it uses Secure Shell (SSH) and supports the SCP protocol in addition to SFTP.

Can I SSH to SFTP server?

SFTP cannot exist without SSH — SFTP uses SSH as the binding agent to transfer files securely. In other words, SSH protocol is used in the file transfer mechanism SFTP. In fact, most SSH servers include SFTP capabilities. However, not all SFTP servers support SSH commands and actions.


5 Answers

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.

like image 56
davea Avatar answered Oct 04 '22 11:10

davea


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.

like image 33
Eugene Mayevski 'Callback Avatar answered Oct 04 '22 12:10

Eugene Mayevski 'Callback


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

like image 26
Stijn Sanders Avatar answered Oct 04 '22 11:10

Stijn Sanders


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/

like image 40
netcodecz Avatar answered Oct 04 '22 12:10

netcodecz


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).

like image 28
superflexible Avatar answered Oct 04 '22 12:10

superflexible