Re: Public Key authenication (General questions)
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:
- Public Key authenication - imper, 2005-06-16, 16:19
- Re: Public Key authenication - wodSupport, 2005-06-16, 16:29
- Re: Public Key authenication - imper, 2005-06-17, 03:53
- Re: Public Key authenication - wodSupport, 2005-06-17, 12:09
- Re: Public Key authenication - imper, 2005-06-17, 17:30
- Re: Public Key authenication - wodSupport, 2005-06-17, 12:09
- Re: Public Key authenication - imper, 2005-06-17, 03:53
- Re: Public Key authenication - wodSupport, 2005-06-16, 16:29