Skip to content

Commit 8709c3f

Browse files
authored
docs: specify custom SSH key file in troubleshooting (#45636)
1 parent 3511cab commit 8709c3f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎content/authentication/troubleshooting-ssh/error-permission-denied-publickey.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,12 @@ You can also check that the key is being used by trying to connect to `git@{% da
141141
ssh -vT git@{% data variables.product.product_url %}
142142
```
143143

144+
If you use a private key with a non-default file name, use the `-i` option to specify the path to the key:
145+
146+
```shell copy
147+
ssh -i ~/.ssh/KEY-FILE -vT git@{% data variables.product.product_url %}
148+
```
149+
144150
You'll see output like this:
145151
146152
```shell

0 commit comments

Comments
 (0)