Oppital
asked on
Sftp Connection in Delphi
I need a component or code to do sftp connection for downloading and uploading files
thanks
Similar links
http://www.example-code.com/delphi/sftp.asp
http://www.chilkatsoft.com/ssh-sftp-activex.asp
http://www.weonlydo.com/SFTP/sftp-activex-component.asp
http://www.componentsoft.net/component/sftp.net/
thanks
Similar links
http://www.example-code.com/delphi/sftp.asp
http://www.chilkatsoft.com/ssh-sftp-activex.asp
http://www.weonlydo.com/SFTP/sftp-activex-component.asp
http://www.componentsoft.net/component/sftp.net/
you can use clevercomponents
http://www.clevercomponents.com/products/inetsuite/suite.asp
and demo for SFTP
http://www.clevercomponents.com/downloads/inetsuite/getfile.asp?f=demo%2Finetsuite%2FFtpClientSSL.zip&d=SFTP+Client+%28SSL%29+Demo
http://www.clevercomponents.com/products/inetsuite/suite.asp
and demo for SFTP
http://www.clevercomponents.com/downloads/inetsuite/getfile.asp?f=demo%2Finetsuite%2FFtpClientSSL.zip&d=SFTP+Client+%28SSL%29+Demo
If you want to connect anonymously;
IdFTP1.ProxySettings.Proxy Type := fpcmNone;
IdFTP1.User := 'anonymous';
IdFTP1.Password := 'test@test.com';
IdFTP1.Connect(true, 500);
IdFTP1.ProxySettings.Proxy
IdFTP1.User := 'anonymous';
IdFTP1.Password := 'test@test.com';
IdFTP1.Connect(true, 500);
ASKER
@maosalah
Thanks for the example but I'm looking for a free solution, unpaid
Thanks for the example but I'm looking for a free solution, unpaid
ASKER
@systan
This is an example of common FTP connection, I'm looking for SFTP
thanks
This is an example of common FTP connection, I'm looking for SFTP
thanks
Correct me if I'm wrong;
The only diference between ftp and sftp is there encryptions
If you want to create your own sftp connections, you should create sftp server and client
For sftp client; encypt your user and password before sending it.
For sftp server; user and password recieved shall be decrypted before comparing to the users database.
A sample code would be nice, but its time consuming because we have to start from the scratch.
If you have started doing it, you can submit your codea here, and let us discuss some changes of the code.
Lets share ideas by code snippet.
The only diference between ftp and sftp is there encryptions
If you want to create your own sftp connections, you should create sftp server and client
For sftp client; encypt your user and password before sending it.
For sftp server; user and password recieved shall be decrypted before comparing to the users database.
A sample code would be nice, but its time consuming because we have to start from the scratch.
If you have started doing it, you can submit your codea here, and let us discuss some changes of the code.
Lets share ideas by code snippet.
ASKER
I believe there are more differences
because the companies charge expensive encryption tools, must have something more, would be very simple to encrypt and send
because the companies charge expensive encryption tools, must have something more, would be very simple to encrypt and send
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Comments are good, please;
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
@systan thanks for the tip, is helping a lot
@NevTon thank you for explaining ssl
could please send me a practical example
@NevTon thank you for explaining ssl
could please send me a practical example
>>You have to add IdServerIOHandlerSSLOpenSS L
Yes, I'm not done with that part, but you have it.
>>could please send me a practical example
Oh men, your just like me, always want a sample, lol, tired of thinking... ?
Anyway, if I have time to program basically of what you want, I will.
@Nevton, thanks for the good approach.
Yes, I'm not done with that part, but you have it.
>>could please send me a practical example
Oh men, your just like me, always want a sample, lol, tired of thinking... ?
Anyway, if I have time to program basically of what you want, I will.
@Nevton, thanks for the good approach.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
What version of delphi you have?
ASKER
I am extremely pleased with the help of you two, thanks, I'm a fan of you now
ASKER
Perfect no more doubts
with IdFTP1 do begin
Host := Edit1.Text; // host
User := Edit2.Text; // username
Password := Edit3.Text; // password
Connect; // make a connection
TransferType := ftBinary; // or ftASCII
// Upload a file
Put(UploadOpenDialog1.File
// or
//Download a file
// Get(Name, SaveDialog1.FileName, true);
Quit; // close the connection
end;