Using ssh tunnel with public and private keys (wodSSHTunnel)
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:
- Using ssh tunnel with public and private keys - Alice Feema, 2014-04-06, 13:54
- Using ssh tunnel with public and private keys - wodSupport, 2014-04-06, 13:59
- Using ssh tunnel with public and private keys - Alice Feema, 2014-04-06, 14:27
- Using ssh tunnel with public and private keys - Alice Feema, 2014-04-06, 14:56
- Using ssh tunnel with public and private keys - wodSupport, 2014-04-06, 16:11
- Using ssh tunnel with public and private keys - wodSupport, 2014-04-06, 16:10
- Using ssh tunnel with public and private keys - Alice Feema, 2014-04-06, 14:56
- Using ssh tunnel with public and private keys - Alice Feema, 2014-04-06, 14:27
- Using ssh tunnel with public and private keys - Alice Feema, 2014-04-06, 14:06
- Using ssh tunnel with public and private keys - wodSupport, 2014-04-06, 14:14
- Using ssh tunnel with public and private keys - wodSupport, 2014-04-06, 13:59