Renci.SshNet.Common.SshException:“不支持 openssh 密钥文件的密码名称 aes256-ctr”

问题描述 投票:0回答:1

当我传递文件的路径时,出现以下错误:

Renci.SshNet.Common.SshException:'openssh 的密码名称 aes256-ctr 不支持密钥文件'

有人可以帮助我吗?

我已经尝试过:

var keyFile = new PrivateKeyFile(privateKeyPath); and also: var keyFile = new PrivateKeyFile(privateKeyPath, passphrase);

c# .net sftp ssh.net
1个回答
0
投票

更新至最新版本的SSH.NET(当前为2023.0.1)。

它确实支持 OpenSSH 私钥的 aes256-ctr 密码。

© www.soinside.com 2019 - 2024. All rights reserved.