EldoS | Feel safer!

Software components for data protection, secure storage and transfer

ElSSHServer.OnAuthPublicKey event not fired

Also by EldoS: CallbackProcess
A component to control process creation and termination in Windows and .NET applications.
#23795
Posted: 02/27/2013 14:26:44
by Eugene Mayevski (EldoS Corp.)

You don't need to "import" anything. If you have an SSH key, you load it using LoadFromStream method of TElSSHKey.


Sincerely yours
Eugene Mayevski
#23796
Posted: 02/27/2013 14:34:07
by David Serrano (Basic support level)
Joined: 11/16/2012
Posts: 19

i am checkin now, and I have an object TElSSHKey but it does not have that method.
It has three methods: LoadPublicKey, LoadPrivateKey and LoadPublicKeyFromBlob.
Could i use LoadPublicKey method if i only have the path of .key file?
#23797
Posted: 02/27/2013 14:40:16
by Eugene Mayevski (EldoS Corp.)

We are getting closer ( to checking the docs ;). You need either the first one or the second one depending on whether you have a public key only or a private key in the file (or both). If you are loading client's key to the server, then you will have only the public key of that user. If you are loading the server's key (using which the server will identify itself), then you need to have a file with a private key and use LoadPrivateKey method.


BTW key loading is shown in SSH client and SFTP client samples.


Sincerely yours
Eugene Mayevski
#23798
Posted: 02/27/2013 14:43:10
by David Serrano (Basic support level)
Joined: 11/16/2012
Posts: 19

jejeje ok I am testing now. I will report the results.
Thanks.
#23818
Posted: 02/28/2013 10:33:29
by David Serrano (Basic support level)
Joined: 11/16/2012
Posts: 19

Well, it works!! however i had another problem. I have stored the key in BD, but when i try to export that i dont know how to convert that bytes in stream and after in a file, is it possible? Sorry for so many questions, but i am exploring this world of ssh keys.
Thanks a lot.
#23820
Posted: 02/28/2013 10:43:04
by Eugene Mayevski (EldoS Corp.)

You have stored the BLOB in the DB. Now you want to export a BLOB from the DB to the file, right? This is not related to SSH keys and you need to check documentation on the DB you use regarding how to obtain a stream of the blob, then read how to copy data from one stream to another.


Sincerely yours
Eugene Mayevski
#23822
Posted: 02/28/2013 10:51:14
by David Serrano (Basic support level)
Joined: 11/16/2012
Posts: 19

I agree with you on that. i will deal wuth that like a blob normal, however, and only for learning, is it posible convert TelSSHKey in Stream?
#23823
Posted: 02/28/2013 10:55:07
by Eugene Mayevski (EldoS Corp.)

SavePublicKey/SavePrivateKey (you don't need to save both if you need to save private key) will do the job.

I must point that we have SSHKeys sample application in Samples folder that shows all these operations. And in general we have many samples and how-to section in the help file (yes, I know, nobody reads them anyway).


Sincerely yours
Eugene Mayevski
#23824
Posted: 02/28/2013 11:02:59
by David Serrano (Basic support level)
Joined: 11/16/2012
Posts: 19

jajajaj Sorry, but i am checking samples in SFTP folders, i had not seen the sshkeys folder. I am going to check that and I hope find all the answers in there.
Thanks a lot.
Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.

Reply

Statistics

Topic viewed 4017 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!