Skip to content

[feature-request]: gh auth login flag that adds ssh keys to github without prompting user #11831

Open

Description

@luccabb

Describe the feature or problem you’d like to solve

It'd be nice to add a flag to the cli that add the SSH keys to github, something like upload-ssh-keys. This should remove the need for this user interaction:

$ gh auth login
...
? Upload your SSH public key to your GitHub account?  [Use arrows to move, type to filter]
> /Users/luccab/.ssh/id_ed25519.pub
  Skip

Activity

  1. added
    enhancement
    on Sep 29, 2025
  2. github-actions commented on Sep 29, 2025

    @github-actions
    Contributor

    Thank you for your issue! We have categorized it as a feature request, and it has been added to our backlog. In doing so, we are not committing to implementing this feature at this time, but, we will consider it for future releases based on community feedback and our own product roadmap.

    Unless you see the help wanted Contributions welcome label, we are not currently looking for external contributions for this feature.

    If you come across this issue and would like to see it implemented, please add a thumbs up! This will help us prioritize the feature. Please only comment if you have additional information or viewpoints to contribute.

  3. added
    needs-triage
    on Sep 29, 2025
  4. changed the title [-][feature-request]: `gh auth login` flag that adds ssh keys without prompting user[/-] [+][feature-request]: `gh auth login` flag that adds ssh keys to github without prompting user[/+] on Sep 29, 2025
  5. added
    gh-auth
    on Oct 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgh-authneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions