From d1d715571b8ae88b1096f6c5ab8ef57a471e8ca3 Mon Sep 17 00:00:00 2001 From: Junyi Wang <41598492+ky1ew@users.noreply.github.com> Date: Thu, 27 Aug 2026 21:04:32 +0800 Subject: [PATCH 1/2] docs: specify custom SSH key file in troubleshooting --- .../error-permission-denied-publickey.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content/authentication/troubleshooting-ssh/error-permission-denied-publickey.md b/content/authentication/troubleshooting-ssh/error-permission-denied-publickey.md index fc569e308b03..0d5fd22df7b1 100644 --- a/content/authentication/troubleshooting-ssh/error-permission-denied-publickey.md +++ b/content/authentication/troubleshooting-ssh/error-permission-denied-publickey.md @@ -141,6 +141,12 @@ You can also check that the key is being used by trying to connect to `git@{% da ssh -vT git@{% data variables.product.product_url %} ``` +If you use a private key with a non-default file name, use the `-i` option to specify the path to the key: + +```shell copy +ssh -i ~/.ssh/KEY-FILE -vT git@{% data variables.product.product_url %} +``` + You'll see output like this: ```shell From ca989dee786382acbaddb2cdf396bf87320fa706 Mon Sep 17 00:00:00 2001 From: kinghump222 Date: Thu, 27 Aug 2026 11:23:16 -0500 Subject: [PATCH 2/2] Change public key fingerprint format in troubleshooting guide Updated the public key fingerprint format for OpenSSH 6.7 and newer. --- .../troubleshooting-ssh/error-permission-denied-publickey.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/authentication/troubleshooting-ssh/error-permission-denied-publickey.md b/content/authentication/troubleshooting-ssh/error-permission-denied-publickey.md index 0d5fd22df7b1..abca6c1c4a65 100644 --- a/content/authentication/troubleshooting-ssh/error-permission-denied-publickey.md +++ b/content/authentication/troubleshooting-ssh/error-permission-denied-publickey.md @@ -243,7 +243,7 @@ You must provide your public key to {% data variables.product.github %} to estab ```shell $ ssh-add -l - > 2048 a0:dd:42:3c:5a:9d:e4:2a:21:52:4e:78:07:6e:c8:4d /Users/USERNAME/.ssh/id_rsa (RSA) + > 2048 MD5:a0:dd:42:3c:5a:9d:e4:2a:21:52:4e:78:07:6e:c8:4d /Users/USERNAME/.ssh/id_rsa (RSA) ``` If you're using OpenSSH 6.8 or newer: