wodsshTunnel with out wodkey object (General questions)
Hi,
I want to use wodsshtunnel com object with publickey. But i don't want to use wodkey com object for load publickey in wodsshtunnel. Is there any other way to assign publickey in wodsshtunnel with out using wodkey object. Please let me know.........
Thanks in advance,
urs,
kkeyan
Re: wodsshTunnel with out wodkey object
wodSSHTunnel will accept key data as in Load method, but you can pass it directly (UNENCRYPTED KEY!!) to PrivateKey property, like this for example:[code]tunnel1.HostName = ....
tunnel1.Authentication = authPubkey
tunnel1.Login = ....
tunnel1.PrivateKey = -----BEGIN RSA PRIVATE KEY----- & vbLf & MIICXQIBAAK... MORE DATA HERE ...F4Y32Zs & vbLf & -----END RSA PRIVATE KEY-----
tunnel1.Connect[/code]
Can you try that?
Kreso
Re: wodsshTunnel with out wodkey object
It works, thank You.
urs,
kkeyan