Using ssh tunnel with public and private keys - WeOnlyDo Discussion board

Using ssh tunnel with public and private keys (wodSSHTunnel)

by Alice Feema, Sunday, April 06, 2014, 14:06 (3884 days ago) @ Alice Feema

Hi, I forgot to ask, when I generate the key I saved the output of
string privatekey = key.ToXmlString(WODSSHKeyLib.SSHKeyTypes.RSAkey,true));

can I use this value in my other project like this:

WODSSHKeyLib.Keys key = new WODSSHKeyLib.Keys();
key.FromXmlString(@"the string from privatekey ");
wodSSHTunnel1.PrivateKey = key;

because I don't want to keep the private key file in the same folder, on my HDD.

Thanks


Complete thread: