Frequently Asked Questions

How to generate and save private and public key in wodSFTP with wodKeys component?

Here is example how to generate and save PrivateKey and PublicKey using wodKeys component:
Dim key As Keys
Set key = New Keys

key.Generate RSAkey  ' you can generate and save with wodKeys RSAkey or DSAkey
key.Save RSAkey, "c:\RSAprivate.txt", "weonlydo"  ' weonlydo is password
key.PublicKeySave RSAkey, "c:\RSApublic.txt"
Debug.Print key.PublicKeyOpenSSH(RSAkey)

wodKeys component is part of wodSFTP ActiveX component.
PublicKey is part of PrivateKey. If you wish to connect to server with your PrivateKey, server need to have your PublicKey.


 Last updated Fri, Nov 8 2013 12:00am

Please Wait!

Please wait... it will take a second!