EldoS | Feel safer!

Software components for data protection, secure storage and transfer

SFTP

Also by EldoS: CallbackProcess
A component to control process creation and termination in Windows and .NET applications.
#16317
Posted: 05/03/2011 06:36:37
by Christian (Standard support level)
Joined: 05/03/2011
Posts: 17

I need to send the Excel files to this address with these indications (SFTP)

host name 207.138.000.000
Port 11111
passsword certificate 22222
User name aaaaa
Username nWb%MBE_


which component should I use?

Best regards

Chrsitian
#16324
Posted: 05/03/2011 08:30:43
by Ken Ivanov (EldoS Corp.)

Thank you for contacting us.

The information you provided is insufficient to give you an adequate answer. The only thing I can tell you now is that you have to use either TElSimpleSFTPClient or TElSimpleFTPSClient, 50/50. I suggest you to try both of the corresponding samples to check which one is actually able to connect to the server.
#16335
Posted: 05/04/2011 00:56:20
by Christian (Standard support level)
Joined: 05/03/2011
Posts: 17

What does the error code 10060?
#16336
Posted: 05/04/2011 01:10:55
by Eugene Mayevski (EldoS Corp.)



Sincerely yours
Eugene Mayevski
#16345
Posted: 05/05/2011 04:42:27
by Christian (Standard support level)
Joined: 05/03/2011
Posts: 17

Hi Eugene

Thank you for your reply

My server uses SFTP as the protocol
I used an example with a component TElSimpleSFTPClient

I dont know how to pass a parameter in the password of the certificate.
In the examples I see you used a file (Private key file for PUBLICKEY authentication type)
The server or I must send my files XLS wants a password certificate like number (22222)



FKeyStorage.Clear;
Key := TElSSHKey.Create;
if (frmConnProps.edPrivateKey.Text <> '') and FileExists(frmConnProps.edPrivateKey.Text) and
(Key.LoadPrivateKey(frmConnProps.edPrivateKey.Text) = 0) then
begin
FKeyStorage.Add(Key);
SftpClient.AuthenticationTypes := SftpClient.AuthenticationTypes or SSH_AUTH_TYPE_PUBLICKEY;
end
else
SftpClient.AuthenticationTypes := SftpClient.AuthenticationTypes and not SSH_AUTH_TYPE_PUBLICKEY;
Key.Free;

Thank you for your help

best regards

Christian
#16347
Posted: 05/05/2011 04:56:50
by Ken Ivanov (EldoS Corp.)

Unfortunately, we are having troubles with understanding what is "password certificate" in your case.

Let's try to come from the other side. Did you have a chance to connect to the server with some other software? If yes, how exactly do you configure it to connect to your server?
#16348
Posted: 05/05/2011 04:58:05
by Vsevolod Ievgiienko (EldoS Corp.)

The password can be passed as a second parameter to LoadPrivateKey function.

function LoadPrivateKey(const PrivateKeyFile : string; const Passphrase : string = '') : integer;
#16350
Posted: 05/05/2011 05:59:26
by Christian (Standard support level)
Joined: 05/03/2011
Posts: 17

The public key authentication and password (user) is required, has noted that the certificate's public key is itself protected by a password (certificate).
#16351
Posted: 05/05/2011 06:06:49
by Ken Ivanov (EldoS Corp.)

Thanks for the explanation. In fact, SSH/SFTP (unlike FTPS) rarely uses certificates, that is why it makes sense to clarify the exact protocol you need to comply to. So, putting aside certificates for a moment, what exactly output do you get with SimpleSFTPDemo sample?
#16352
Posted: 05/05/2011 06:09:30
by Vsevolod Ievgiienko (EldoS Corp.)

If the keys are stored in certificate then you should load this certificate as it is shown in, for example, \EldoS\SecureBlackbox\Samples\Delphi\PKIBlackbox\Primitives\Encrypt demo, and then load these keys using ElSSHKey.Import method.
Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.

Reply

Statistics

Topic viewed 6635 times

Number of guests: 2, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!