wodsshTunnel with out wodkey object (General questions)

by kkeyan @, (6963 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

locked

Re: wodsshTunnel with out wodkey object

by Jasmine, (6963 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

locked

Re: wodsshTunnel with out wodkey object

by kkeyan @, (6963 days ago) @ Jasmine

It works, thank You.
urs,
kkeyan

locked