Skip to content

Exception when initializing PrivateKeyFile with type [email protected] #1483

Closed

Description

@Tawmy

Hey there, I am trying to connect to an SFTP server using an OpenSSH key. This OpenSSH key uses the cipher [email protected]. When initializing a new instance of PrivateKeyFile with the path to the private key and private key passphrase, the library throws an exception: Cipher '[email protected]' is not supported for an OpenSSH key.

I was under the impression 2024.1 added support for this specific cipher. Does the key need to be initialized differently?

I am using .NET 8 on macOS 14.6.1.

Activity

  1. scott-xu commented on Sep 5, 2024

    @scott-xu
    Collaborator

    The cipher is added for packet encryption/decryption only but not for private key decryption.

    I'm going to spend some time refactoring the code to make it easy for private key decryption.

  2. Tawmy commented on Sep 6, 2024

    @Tawmy
    Author

    That is much appreciated, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions