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

[FEATURE] Import authorized_keys public SSH Keys from GitHub username #784

Open
nelsonjchen opened this issue Jan 15, 2024 · 3 comments
Open
Labels
enhancement New feature or request

Comments

@nelsonjchen
Copy link

nelsonjchen commented Jan 15, 2024

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

The device I'm flashing on may not have a copy of all my public keys. Or it might have just one of my public keys and I have other workstations. But I do know my GitHub username and that does have all or most keys from all or most of my workstations...

https://github.com/nelsonjchen.keys

Describe the solution you'd like
A clear and concise description of what you want to happen.

Be able to enter in a GitHub username and import all public SSH keys from GitHub as an option for pre-filling SSH keys when flashing.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Everything else is work. I'm lazy. In all seriousness, maybe ssh-copy-id, but that's not available on all workstations and certainly doesn't solve the whole "stuff all my workstation keys from GitHub" into the flash issue. I guess curl https://github.com/nelsonjchen.keys >> ~/.ssh/authorized_keys might work too, but that'll have to be done interactively for all.

The other wild idea is SSH CA. That's a wholly different issue 😄 and not one I've seen examples like mentioned in Additional Context. And I don't think it's or would be very popular.

Additional context
Add any other context or screenshots about the feature request here.

I've seen this in Ubuntu Server's installer and comma.ai openpilot's SSH setup UI. In both of those cases, "Import from GitHub" was extremely convenient. I suspect there could be other examples out there as well.

@nelsonjchen nelsonjchen added the enhancement New feature or request label Jan 15, 2024
@nelsonjchen nelsonjchen changed the title [FEATURE] Import SSH Keys from GitHub username [FEATURE] Import authorized_keys public SSH Keys from GitHub username Jan 15, 2024
@lurch
Copy link
Contributor

lurch commented Jan 15, 2024

Duplicate of #374 ?

@nelsonjchen
Copy link
Author

Wow! I was searching issues quite furiously and never would have guessed it was already at languishing PR stage.

@tdewey-rpi
Copy link
Collaborator

Tagging this for 2.0. This is a pretty powerful feature, and it will require some additional UI space to look natural inside Raspberry Pi Imager.

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

3 participants