Re: Public Key authenication - WeOnlyDo Discussion board

Re: Public Key authenication (General questions)

by wodSupport, Thursday, June 16, 2005, 16:29 (6893 days ago) @ imper

Imper,

since it's exactly the same as in wodSSH and wodSFTP, I suggest you look at that forum.

Anyway, you will need to use wodKeys, and calls it's Generate method. Then use wodKeys.PublicKeyOpenSSH to retrieve public key, and transfer that public key on the server to appropriate file (~/.ssh/authorized_keys2 usually). After that, do something like this:

SShTunnel.Authentication = authPubKey
Dim k as new wodKeys
k.Load your_saved_key , your_password
SshTunnel.PrivateKey = k
SshTunnel.Login = your_login
....

and connect. That should be it.

Hope it helps.


Complete thread: