Failed to import key from file. (wodFtpDLX / wodFtpDLX.NET)
Self Solve:
In reviewing the file and comparing to others that were successful, noted that the files that failed were saved in the ppk version 3 format:
PuTTY-User-Key-File-3: ssh-rsa
Encryption: aes256-cbc
and those that succeeded were in the older format:
PuTTY-User-Key-File-2: ssh-rsa
Encryption: aes256-cbc
Saved the keys in the older format and loading the key file succeeded. Guessing that this component was upgraded for that newer format at some point
Jeremy
Crutchfield
Getting "Failed to import key from file" from FtpDLX Verison: 1.8.3.247
.NET C# project
Code:
KeyManager keyManager = new KeyManager();
string keyFile = string.Format("{0}{1}", this._sftpKeyPath, this._sftpKeyName);
string passKey = this._sftpPassKey;Log.LogInfo(string.Format(" Loading keyfile: {0}, passkey: {1}, keytype: {2}", keyFile, passKey, this._sshKeyType));
keyManager.Load(keyFile, passKey);Error shows up in debugger when executing keyManager.Load(keyFile, passKey);
Log:
10/6/2023 15:48:22.728 [MACHINE - USER] # Loading keyfile: \\SERVER\keys\Company\Us_Company_SSH_RSA_key_Private.ppk, passkey: Pass Key, keytype: RSAKey was created in PutTYGen Parameters: 4096 bit RSA Fingerprint: ssh-rsa 4096 SHA256:dpYtOODDiW1XmNjX96zNTpONMqFSGhJ1ssWsVC51WDc
with a passkeyKey is able to be used in WinFTP to secure login to partner's site and upload/download files.
Paul