Cannot access SSH key file in local folder path? (wodFtpDLX / wodFtpDLX.NET)
WeOnlyDo.Security.Cryptography.KeyManager keyManager = new WeOnlyDo.Security.Cryptography.KeyManager();
keyManager.Load("\\Computer\Folder\PrivateKey.pem", keyPassword); (works)
keyManager.Load("C:\Folder\PrivateKey.pem", keyPassword); (doesn't work)
//Set authentication to public key type.
wodDlx.Authentication = WeOnlyDo.Client.Authentications.PublicKey;
//Connect private key from wodKeyManager.NET to wodSFTP.NET.
wodDlx.Blocking = true; //Use synchronous connections
wodDlx.Login = login;
wodDlx.Hostname = hostAddress;
wodDlx.Protocol = WeOnlyDo.Client.Protocols.SFTP;
wodDlx.LicenseKey = licenseKey;
wodDlxPort = port;
wodDlx.PrivateKey = keyManager.ToXmlString(WeOnlyDo.Security.Cryptography.SSHKeyTypes.RSAKey, true);
wodDlx.Connect();
Complete thread:
- Cannot access SSH key file in local folder path? - Kat, 2017-04-25, 23:04
- Cannot access SSH key file in local folder path? - Jasmine, 2017-04-25, 23:04
- Cannot access SSH key file in local folder path? - Kat, 2017-04-25, 23:16
- Cannot access SSH key file in local folder path? - Jasmine, 2017-04-25, 23:18
- Cannot access SSH key file in local folder path? - Kat, 2017-04-25, 23:21
- Cannot access SSH key file in local folder path? - Jasmine, 2017-04-25, 23:23
- Cannot access SSH key file in local folder path? - Kat, 2017-04-25, 23:33
- Cannot access SSH key file in local folder path? - Jasmine, 2017-04-26, 07:31
- Cannot access SSH key file in local folder path? - Kat, 2017-04-25, 23:33
- Cannot access SSH key file in local folder path? - Jasmine, 2017-04-25, 23:18
- Cannot access SSH key file in local folder path? - Kat, 2017-04-25, 23:16
- Cannot access SSH key file in local folder path? - Jasmine, 2017-04-25, 23:04