当我传递文件的路径时,出现以下错误:
Renci.SshNet.Common.SshException:'openssh 的密码名称 aes256-ctr 不支持密钥文件'
有人可以帮助我吗?
我已经尝试过:
var keyFile = new PrivateKeyFile(privateKeyPath); and also: var keyFile = new PrivateKeyFile(privateKeyPath, passphrase);
更新至最新版本的SSH.NET(当前为2023.0.1)。
它确实支持 OpenSSH 私钥的 aes256-ctr 密码。