wodsshTunnel with out wodkey object - WeOnlyDo Discussion board

wodsshTunnel with out wodkey object (General questions)

by kkeyan, Monday, April 10, 2006, 14:14 (6802 days ago)

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

by wodSupport, Monday, April 10, 2006, 22:57 (6801 days ago) @ kkeyan

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

by kkeyan, Tuesday, April 11, 2006, 08:42 (6801 days ago) @ wodSupport

It works, thank You.
urs,
kkeyan