1
0
mirror of synced 2025-12-23 03:44:00 -05:00

Fix for blank lines around code fences (#38255)

This commit is contained in:
Grace Park
2023-06-26 10:21:48 -07:00
committed by GitHub
parent a4913b5935
commit a8a6e4554a
272 changed files with 1552 additions and 2 deletions

View File

@@ -48,13 +48,17 @@ If you are a site administrator for {% data variables.location.product_location
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
```
{%- else %}
```shell
ssh-keygen -t ed25519 -C "your_email@example.com"
```
{% note %}
**Note:** If you are using a legacy system that doesn't support the Ed25519 algorithm, use:
```shell
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
```
@@ -63,9 +67,11 @@ If you are a site administrator for {% data variables.location.product_location
{%- endif %}
This creates a new SSH key, using the provided email as a label.
```shell
> Generating public/private ALGORITHM key pair.
```
When you're prompted to "Enter a file in which to save the key", you can press **Enter** to accept the default file location. Please note that if you created SSH keys previously, ssh-keygen may ask you to rewrite another key, in which case we recommend creating a custom-named SSH key. To do so, type the default file location and replace id_ssh_keyname with your custom key name.
{% mac %}
@@ -93,6 +99,7 @@ When you're prompted to "Enter a file in which to save the key", you can press *
{% endlinux %}
1. At the prompt, type a secure passphrase. For more information, see "[AUTOTITLE](/authentication/connecting-to-github-with-ssh/working-with-ssh-key-passphrases)."
```shell
> Enter passphrase (empty for no passphrase): [Type a passphrase]
> Enter same passphrase again: [Type passphrase again]
@@ -142,12 +149,15 @@ Before adding a new SSH key to the ssh-agent to manage your keys, you should hav
Host {% ifversion ghes or ghae %}HOSTNAME{% else %}github.com{% endif %}
IgnoreUnknown UseKeychain
```
{% endnote %}
1. Add your SSH private key to the ssh-agent and store your passphrase in the keychain. {% data reusables.ssh.add-ssh-key-to-ssh-agent %}
```shell
ssh-add --apple-use-keychain ~/.ssh/id_{% ifversion ghae %}rsa{% else %}ed25519{% endif %}
```
{% note %}
**Note:** The `--apple-use-keychain` option stores the passphrase in your keychain for you when you add an SSH key to the ssh-agent. If you chose not to add a passphrase to your key, run the command without the `--apple-use-keychain` option.
@@ -169,6 +179,7 @@ Before adding a new SSH key to the ssh-agent to manage your keys, you should hav
{% data reusables.desktop.windows_git_bash %}
1. Ensure the ssh-agent is running. You can use the "Auto-launching the ssh-agent" instructions in "[Working with SSH key passphrases](/articles/working-with-ssh-key-passphrases)", or start it manually:
```shell
# start the ssh-agent in the background
$ eval "$(ssh-agent -s)"
@@ -200,6 +211,7 @@ If you are using macOS or Linux, you may need to update your SSH client or insta
1. Insert your hardware security key into your computer.
{% data reusables.command_line.open_the_multi_os_terminal %}
1. Paste the text below, substituting in the email address for your account on {% data variables.product.product_name %}.
```shell
ssh-keygen -t {% ifversion ghae %}ecdsa{% else %}ed25519{% endif %}-sk -C "YOUR_EMAIL"
```
@@ -208,6 +220,7 @@ If you are using macOS or Linux, you may need to update your SSH client or insta
{% note %}
**Note:** If the command fails and you receive the error `invalid format` or `feature not supported,` you may be using a hardware security key that does not support the Ed25519 algorithm. Enter the following command instead.
```shell
ssh-keygen -t ecdsa-sk -C "your_email@example.com"
```
@@ -242,8 +255,10 @@ If you are using macOS or Linux, you may need to update your SSH client or insta
{% endlinux %}
1. When you are prompted to type a passphrase, press **Enter**.
```shell
> Enter passphrase (empty for no passphrase): [Type a passphrase]
> Enter same passphrase again: [Type passphrase again]
```
{% data reusables.ssh.add-public-key-to-github %}

View File

@@ -23,6 +23,7 @@ When you test your connection, you'll need to authenticate this action using you
{% data reusables.command_line.open_the_multi_os_terminal %}
2. Enter the following:
```shell
$ ssh -T git@{% data variables.command_line.codeblock %}
# Attempts to ssh to {% data variables.product.product_name %}
@@ -37,6 +38,7 @@ When you test your connection, you'll need to authenticate this action using you
```
3. Verify that the fingerprint in the message you see matches {% ifversion fpt or ghec %}[{% data variables.product.prodname_dotcom %}'s public key fingerprint](/authentication/keeping-your-account-and-data-secure/githubs-ssh-key-fingerprints){% else %} your enterprise's public key fingerprint{% endif %}. If it does, then type `yes`:
```shell
> Hi USERNAME! You've successfully authenticated, but GitHub does not
> provide shell access.
@@ -45,6 +47,7 @@ When you test your connection, you'll need to authenticate this action using you
{% linux %}
You may see this error message:
```shell
...
Agent admitted failure to sign using the key.