Skip to content

change ssh private key default to ed25519 before checking for rsa #384

@jashandeep-sohi

Description

@jashandeep-sohi

Currently, only RSA keys are supported:

let private_key = identity.unwrap_or(home()?.join(".ssh/id_rsa"));

However, more and more people are defaulting to ed25519(myself included). Having to setup a rsa key just for cargo-generate is not ideal.

cargo-generate should at least support ed25519 keys as well.

Edit: I realize I could manually override this via -i | --identity, but my request is to make it automatically use id_ed25519 if it exists.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions