Skip to content

aes256-ctr not supported for private keys #742

@brohee

Description

@brohee

Hi,

Newer OpenSSH versions seem to create private keys enciphered with aes256-ctr by default, at least for ed25519 keys, making them impossible to load with SSH.NET. Given than ssh-keygen doesn't provide a handy way to reencode the key, it's pretty annoying.

Stacktrace of an attempt at loading such a key:

Renci.SshNet.Common.SshException: cipher name aes256-ctr for openssh key file is not supported
   . Renci.SshNet.PrivateKeyFile.ParseOpenSshV1Key(Byte[] keyFileData, String passPhrase)
   . Renci.SshNet.PrivateKeyFile.Open(Stream privateKey, String passPhrase)
   . Renci.SshNet.PrivateKeyFile..ctor(Stream privateKey, String passPhrase)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions