System Grab Bag

View all TLDR pages from common (or from all pages)

gh ssh-key

Manage GitHub SSH keys. More information: https://cli.github.com/manual/gh_ssh-key.
  • Display help:
    gh ssh-key
  • List SSH keys for the currently authenticated user:
    gh ssh-key list
  • Add an SSH key to the currently authenticated user's account:
    gh ssh-key add {{path/to/key.pub}}
  • Add an SSH key to the currently authenticated user's account with a specific title:
    gh ssh-key add --title {{title}} {{path/to/key.pub}}

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.