WeOnlyDo Support

Frequently Asked Question

How to connect to server with private key in wodSFTP.NET?
Last Updated 12 years ago

Here is example how to connect to server with PrivateKey:

 sftp = New WeOnlyDo.Client.SFTP
 key = New WeOnlyDo.Security.Cryptography.KeyManager
 key.Load("C:\RSAprivate.txt","weonlydo")

 sftp.Authentication = WeOnlyDo.Client.SFTP.Authentications.PublicKey
 sftp.Hostname = "your_hostname"
 sftp.Login = "your_login"
 sftp.PrivateKey = key.PrivateKey(WeOnlyDo.Security.Cryptography.SSHKeyTypes.RSAKey)
 sftp.Connect()

PublicKey is part of PrivateKey. If you wish to connect to server with PrivateKey, server need to have your PublicKey.
You can generate and save PrivateKey and PublicKey with wodKeyManager.NET component.
wodKeyManager.NET component is part of wodSFTP.NET component.

Please Wait!

Please wait... it will take a second!