Renci.SshNet.Common.SshException: 'cipher name aes256-ctr for openssh key file is not supported'

97 Views Asked by At

When I pass the path of my file, I get the following error:

Renci.SshNet.Common.SshException: 'cipher name aes256-ctr for openssh key file is not supported'

Can anyone help me?

I've tried:

var keyFile = new PrivateKeyFile(privateKeyPath);

and also:

var keyFile = new PrivateKeyFile(privateKeyPath, passphrase);
1

There are 1 best solutions below

1
Martin Prikryl On BEST ANSWER

Update to the latest version of SSH.NET (2023.0.1 currently).

It does support the aes256-ctr cipher for OpenSSH private keys.