

The private key is kept safe and secure on your system. The public key is shared with Azure DevOps and used to verify the initial ssh connection. SSH public key authentication works with an asymmetric pair of generated encryption keys. Alternatively, use a GUI client to update the remote URLs.

gh ssh-key add KEY-FILE -title "personal laptop" To include a title for the new key, use the -t or -title flag. If you're prompted to request additional scopes, follow the instructions in the command line.

To add an SSH authentication key to your GitHub account, use the ssh-key add subcommand, specifying your public key. For more information, see gh auth login in the GitHub CLI documentation.Īt present, you can only use GitHub CLI to add SSH authentication keys, you cannot add SSH signing keys. To learn more about GitHub CLI, see " About GitHub CLI."īefore you can use the GitHub CLI to add an SSH key to your account, you must authenticate to the GitHub CLI. For more information, see " Managing remote repositories." If you want to use the same SSH key for both authentication and signing, you need to upload it twice.Īfter adding a new SSH authentication key to your account on, you can reconfigure any local repositories to use SSH. You can add an SSH key and use it for authentication, or commit signing, or both. For more information, see " Generating a new SSH key and adding it to the ssh-agent." Generate a new SSH key and add it to your machine's SSH agent.For more information, see " Checking for existing SSH keys." Prerequisitesīefore adding a new SSH key to your account on, complete the following steps.

For more information about commit signing, see " About commit signature verification."Īfter you generate an SSH key pair, you must add the public key to to enable SSH access for your account. You can also use SSH to sign commits and tags. When you connect via SSH, you authenticate using a private key file on your local machine. You can access and write data in repositories on using SSH (Secure Shell Protocol). About addition of SSH keys to your account
