Skip to content

Commit 99a0dbe

Browse files
authored
Merge pull request #33062 from github/repo-sync
Repo sync
2 parents e8fa687 + ae4ea8b commit 99a0dbe

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

content/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ Before adding a new SSH key to the ssh-agent to manage your keys, you should hav
119119
120120
- Open your `~/.ssh/config` file, then modify the file to contain the following lines. If your SSH key file has a different name or path than the example code, modify the filename or path to match your current setup.
121121
122-
```text copy
122+
```text replacedomain copy
123123
Host {% ifversion ghes %}HOSTNAME{% else %}github.com{% endif %}
124124
AddKeysToAgent yes
125125
UseKeychain yes
@@ -134,7 +134,7 @@ Before adding a new SSH key to the ssh-agent to manage your keys, you should hav
134134
135135
- If you see a `Bad configuration option: usekeychain` error, add an additional line to the configuration's' `Host *.{% ifversion ghes %}HOSTNAME{% else %}github.com{% endif %}` section.
136136
137-
```text copy
137+
```text replacedomain copy
138138
Host {% ifversion ghes %}HOSTNAME{% else %}github.com{% endif %}
139139
IgnoreUnknown UseKeychain
140140
```

content/authentication/connecting-to-github-with-ssh/testing-your-ssh-connection.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ You'll need to authenticate this action using your password, which is the SSH ke
2424
{% data reusables.command_line.open_the_multi_os_terminal %}
2525
1. Enter the following:
2626

27-
```shell copy
27+
```shell replacedomain copy
2828
ssh -T git@{% data variables.product.product_url %}
2929
# Attempts to ssh to {% data variables.product.product_name %}
3030
```
3131

3232
You may see a warning like this:
3333

34-
```shell
34+
```shell replacedomain
3535
> The authenticity of host '{% data variables.product.product_url %} (IP ADDRESS)' can't be established.
3636
> ED25519 key fingerprint is SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU.
3737
> Are you sure you want to continue connecting (yes/no)?

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ If you have a _very good reason_ you must use `sudo`, then ensure you are using
2424

2525
To make sure you are connecting to the right domain, you can enter the following command:
2626

27-
```shell copy
27+
```shell replacedomain copy
2828
ssh -vT git@{% data variables.product.product_url %}
2929
```
3030

3131
You should see this output:
3232

33-
```shell
33+
```shell replacedomain
3434
> OpenSSH_8.1p1, LibreSSL 2.7.3
3535
> debug1: Reading configuration data /Users/YOU/.ssh/config
3636
> debug1: Reading configuration data /etc/ssh/ssh_config
@@ -44,7 +44,7 @@ The connection should be made on port 22{% ifversion fpt or ghec %}, unless you'
4444

4545
All connections, including those for remote URLs, must be made as the "git" user. If you try to connect with your {% data variables.product.product_name %} username, it will fail:
4646

47-
```shell
47+
```shell replacedomain
4848
$ ssh -T GITHUB-USERNAME@{% data variables.product.product_url %}
4949
> Permission denied (publickey).
5050
```
@@ -53,7 +53,7 @@ If your connection failed and you're using a remote URL with your {% data variab
5353

5454
You should verify your connection by typing:
5555

56-
```shell copy
56+
```shell replacedomain copy
5757
ssh -T git@{% data variables.product.product_url %}
5858
```
5959

@@ -124,7 +124,7 @@ The `ssh-add` command _should_ print out a long string of numbers and letters. I
124124

125125
You can also check that the key is being used by trying to connect to `git@{% data variables.product.product_url %}`:
126126

127-
```shell copy
127+
```shell replacedomain copy
128128
ssh -vT git@{% data variables.product.product_url %}
129129
```
130130

0 commit comments

Comments
 (0)