Skip to content

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

@nelsonjchen

Description

@nelsonjchen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions