Re: Creating KeyPair using wodsftp.net - WeOnlyDo Discussion board

Re: Creating KeyPair using wodsftp.net (General questions)

by wodDamir, Wednesday, June 04, 2008, 11:10 (6017 days ago) @ hit_arc

Hi hit_arc,

Public key is generated when Generate method is used. You should just export the PublicKeyOpenSSH property to a file, and you're done.

Something like this:

[code]string publicKey = KM.PublicKeyOpenSSH(WeOnlyDo.Security.Cryptography.SSHKeyTypes.RSAKey);
System.IO.File.WriteAllText(@ C:publickey.txt , publicKey);[/code]

Can you try something like that?

Regards,
Damba


Complete thread: