Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for another SSH key type besides id_rsa #140

Open
ii64 opened this issue Feb 4, 2024 · 0 comments
Open

Support for another SSH key type besides id_rsa #140

ii64 opened this issue Feb 4, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@ii64
Copy link

ii64 commented Feb 4, 2024

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.

@ii64 ii64 added the enhancement New feature or request label Feb 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant