EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Authentication type in TElSSHClient

Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
#274
Posted: 05/19/2006 05:41:16
by Alexander Pustotin (Basic support level)
Joined: 05/19/2006
Posts: 3

Hello all.

I would like to know which properties of TElSSHClient I should to specify for loging with public/private keys authentication approach.

I have looked through demo's and found that I need:
1. Add SSH_AUTH_TYPE_PUBLICKEY to AuthenticationTypes;
2. Specify a file with my private key;
3. something else ??? (like UserName, Password...)

Could anyone help me?

Thanks
#275
Posted: 05/19/2006 05:52:56
by Ken Ivanov (EldoS Corp.)

Quote
I would like to know which properties of TElSSHClient I should to specify for loging with public/private keys authentication approach.

You should perform the following steps:
a) create an ElSSHMemoryKeyStorage instance and load your private key into it (using ElSSHKey object),
b) bind the storage created on step (a) to ElSSHClient object using its KeyStorage property,
c) enable the SSH_AUTH_TYPE_PUBLICKEY authentication type by adding it to AuthenticationTypes,
d) set the ElSSHClient.Username property according to a user account you need to log in to.
#276
Posted: 05/19/2006 05:57:10
by Alexander Pustotin (Basic support level)
Joined: 05/19/2006
Posts: 3

Thank you Innokentiy for the fastest reply.

Reply

Statistics

Topic viewed 4450 times

Number of guests: 1, 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!