|
|
|
|
@@ -23,7 +23,7 @@ shortTitle: Generate new SSH key
|
|
|
|
|
|
|
|
|
|
When you generate an SSH key, you can add a passphrase to further secure the key. Whenever you use the key, you must enter the passphrase. If your key has a passphrase and you don't want to enter the passphrase every time you use the key, you can add your key to the SSH agent. The SSH agent manages your SSH keys and remembers your passphrase.
|
|
|
|
|
|
|
|
|
|
If you don't already have an SSH key, you must generate a new SSH key to use for authentication. If you're unsure whether you already have an SSH key, you can check for existing keys. For more information, see "[Checking for existing SSH keys](/github/authenticating-to-github/checking-for-existing-ssh-keys)."
|
|
|
|
|
If you don't already have an SSH key, you must generate a new SSH key to use for authentication. If you're unsure whether you already have an SSH key, you can check for existing keys. For more information, see "[Checking for existing SSH keys](/authentication/connecting-to-github-with-ssh/checking-for-existing-ssh-keys)."
|
|
|
|
|
|
|
|
|
|
If you want to use a hardware security key to authenticate to {% data variables.product.product_name %}, you must generate a new SSH key for your hardware security key. You must connect your hardware security key to your computer when you authenticate with the key pair. For more information, see the [OpenSSH 8.2 release notes](https://www.openssh.com/txt/release-8.2).
|
|
|
|
|
|
|
|
|
|
@@ -44,7 +44,7 @@ If you are a site administrator for {% data variables.location.product_location
|
|
|
|
|
{%- ifversion ghae %}
|
|
|
|
|
<!-- GitHub AE is FIPS 140-2 compliant. FIPS does not yet permit keys that use the ed25519 algorithm. -->
|
|
|
|
|
```shell
|
|
|
|
|
$ ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
|
|
|
|
|
$ ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
|
|
|
|
|
$ ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
@@ -160,7 +160,7 @@ Before adding a new SSH key to the ssh-agent to manage your keys, you should hav
|
|
|
|
|
|
|
|
|
|
{% endnote %}
|
|
|
|
|
|
|
|
|
|
4. Add the SSH key to your account on {% data variables.product.product_name %}. For more information, see "[Adding a new SSH key to your {% data variables.product.prodname_dotcom %} account](/github/authenticating-to-github/adding-a-new-ssh-key-to-your-github-account)."
|
|
|
|
|
4. Add the SSH key to your account on {% data variables.product.product_name %}. For more information, see "[Adding a new SSH key to your {% data variables.product.prodname_dotcom %} account](/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account)."
|
|
|
|
|
|
|
|
|
|
{% endmac %}
|
|
|
|
|
|
|
|
|
|
@@ -178,7 +178,7 @@ Before adding a new SSH key to the ssh-agent to manage your keys, you should hav
|
|
|
|
|
2. Add your SSH private key to the ssh-agent. {% data reusables.ssh.add-ssh-key-to-ssh-agent %}
|
|
|
|
|
{% data reusables.ssh.add-ssh-key-to-ssh-agent-commandline %}
|
|
|
|
|
|
|
|
|
|
3. Add the SSH key to your account on {% data variables.product.product_name %}. For more information, see "[Adding a new SSH key to your {% data variables.product.prodname_dotcom %} account](/github/authenticating-to-github/adding-a-new-ssh-key-to-your-github-account)."
|
|
|
|
|
3. Add the SSH key to your account on {% data variables.product.product_name %}. For more information, see "[Adding a new SSH key to your {% data variables.product.prodname_dotcom %} account](/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account)."
|
|
|
|
|
|
|
|
|
|
{% endwindows %}
|
|
|
|
|
|
|
|
|
|
@@ -189,7 +189,7 @@ Before adding a new SSH key to the ssh-agent to manage your keys, you should hav
|
|
|
|
|
2. Add your SSH private key to the ssh-agent. {% data reusables.ssh.add-ssh-key-to-ssh-agent %}
|
|
|
|
|
{% data reusables.ssh.add-ssh-key-to-ssh-agent-commandline %}
|
|
|
|
|
|
|
|
|
|
3. Add the SSH key to your account on {% data variables.product.product_name %}. For more information, see "[Adding a new SSH key to your {% data variables.product.prodname_dotcom %} account](/github/authenticating-to-github/adding-a-new-ssh-key-to-your-github-account)."
|
|
|
|
|
3. Add the SSH key to your account on {% data variables.product.product_name %}. For more information, see "[Adding a new SSH key to your {% data variables.product.prodname_dotcom %} account](/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account)."
|
|
|
|
|
|
|
|
|
|
{% endlinux %}
|
|
|
|
|
|
|
|
|
|
@@ -246,4 +246,4 @@ If you are using macOS or Linux, you may need to update your SSH client or insta
|
|
|
|
|
> Enter passphrase (empty for no passphrase): [Type a passphrase]
|
|
|
|
|
> Enter same passphrase again: [Type passphrase again]
|
|
|
|
|
```
|
|
|
|
|
7. Add the SSH key to your account on {% data variables.product.prodname_dotcom %}. For more information, see "[Adding a new SSH key to your {% data variables.product.prodname_dotcom %} account](/github/authenticating-to-github/adding-a-new-ssh-key-to-your-github-account)."
|
|
|
|
|
7. Add the SSH key to your account on {% data variables.product.prodname_dotcom %}. For more information, see "[Adding a new SSH key to your {% data variables.product.prodname_dotcom %} account](/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account)."
|
|
|
|
|
|