Skip to content

Support for another SSH key type besides id_rsa #140

@ii64

Description

@ii64

Is your feature request related to a problem? Please describe

When trying to use huber for either install or search a package it yields an error message:

huber search k3s
error: authentication required but no callback set; class=Ssh (23); code=Auth (-16)%

After looking at the code for a glance, it seems that the support for SSH key appear only supported RSA key which is denoted by concatenation of path with id_rsa at:

let p = dirs::home_dir().unwrap().join(".ssh").join("id_rsa");

For somebody that does not using RSA for SSH keys, this can lead to the aforementioned issue. For example, I am now, on my current computer only has id_ed25519 and id_ecdsa_sk.

Describe the solution you'd like

What I was thinking for this is that if we could make of use running SSH agent to authenticate the git operations as the agent always carried on the ENVs:

env | grep AGENT
SSH_AGENT_PID=37358

Describe alternatives you've considered

I guess by continuing the previous approach but now we are doing some sort of scanning on known SSH key file name list.

Additional context

No additional context as of now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions