From 0b3264f4cc02cf91c9b59dfe4bb6e7f0ff072184 Mon Sep 17 00:00:00 2001 From: Dave Hirschfeld Date: Mon, 5 Feb 2024 19:55:29 +1000 Subject: [PATCH] Update adding-a-new-ssh-key-to-your-github-account.md (#31103) Co-authored-by: hubwriter --- .../adding-a-new-ssh-key-to-your-github-account.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/content/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account.md b/content/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account.md index 4a6a4aeb947b..69398b295272 100644 --- a/content/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account.md +++ b/content/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account.md @@ -63,12 +63,10 @@ After adding a new SSH authentication key to your account on {% data variables.l Before you can use the {% data variables.product.prodname_cli %} to add an SSH key to your account, you must authenticate to the {% data variables.product.prodname_cli %}. For more information, see [`gh auth login`](https://cli.github.com/manual/gh_auth_login) in the {% data variables.product.prodname_cli %} documentation. -{% ifversion ssh-commit-verification %}At present, you can only use {% data variables.product.prodname_cli %} to add SSH authentication keys, you cannot add SSH signing keys.{% endif %} - -To add an SSH authentication key to your GitHub account, use the `ssh-key add` subcommand, specifying your public key. If you're prompted to request additional scopes, follow the instructions in the command line. +To add an SSH key to your GitHub account, use the `ssh-key add` subcommand, specifying your public key. For authentication keys, if you're prompted to request additional scopes, follow the instructions in the command line. ```shell -gh ssh-key add KEY-FILE +gh ssh-key add KEY-FILE --type {authentication|signing} ``` To include a title for the new key, use the `-t` or `--title` flag. @@ -80,7 +78,7 @@ gh ssh-key add KEY-FILE --title "personal laptop" If you generated your SSH key by following the instructions in "[AUTOTITLE](/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent)", you can add the key to your account with this command. ```shell -gh ssh-key add ~/.ssh/id_ed25519.pub +gh ssh-key add ~/.ssh/id_ed25519.pub --type signing ``` {% endcli %}