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

Using ssh tunnel with public and private keys (wodSSHTunnel)

by wodSupport, Sunday, April 06, 2014, 13:59 (3663 days ago) @ Alice Feema

Talia,

hi. Are you saying that same key works with Putty? or different key? You can exchange keys if you wish, since Load method can load Putty's key (without password).

Your code looks ok to me, *EXCEPT* this line:

key.PublicKeySave(WODSSHKeyLib.SSHKeyTypes.RSAkey, "public");

I think you should use

key.PublicKeyOpenSSH

instead, since that extracts public key in OpenSSH format which is what you need.

Kreso


Complete thread: