Failed to import key from file. - WeOnlyDo Discussion board

Failed to import key from file. (wodFtpDLX / wodFtpDLX.NET)

by Crutchfield, Friday, October 06, 2023, 22:03 (203 days ago)

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: RSA

Key was created in PutTYGen Parameters: 4096 bit RSA Fingerprint: ssh-rsa 4096 SHA256:dpYtOODDiW1XmNjX96zNTpONMqFSGhJ1ssWsVC51WDc
with a passkey

Key is able to be used in WinFTP to secure login to partner's site and upload/download files.

Paul


Complete thread: