![]() If you generated your SSH key by following the instructions in " Generating a new SSH key and adding it to the ssh-agent", you can add the key to your account with this command. 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. In your shell run git remote set-url for each remote of a repository you wish to update.Visit your repository on the web and select Clone. 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. Run git remote -v in your shell or use a GUI client instead. 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." For more information, see " Generating a new SSH key and adding it to the ssh-agent."Īfter adding a new SSH authentication key to your account on, you can reconfigure any local repositories to use SSH. 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
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |