1
0
mirror of synced 2025-12-22 03:16:52 -05:00

Hello git history spelunker!

Are you looking for something? Here is all of the GitHub Docs history in one single commit. Enjoy! 🎉
This commit is contained in:
Vanessa Yuen
2020-09-27 14:10:11 +02:00
parent fa8bb2322f
commit 3df90fc9b8
28386 changed files with 1723440 additions and 3 deletions

View File

@@ -0,0 +1,61 @@
---
title: Testing your SSH connection
intro: 'After you''ve set up your SSH key and added it to your {{ site.data.variables.product.product_name }} account, you can test your connection.'
redirect_from:
- /articles/testing-your-ssh-connection
versions:
free-pro-team: '*'
enterprise-server: '*'
---
Before testing your SSH connection, you should have:
- [Checked for existing SSH keys](/articles/checking-for-existing-ssh-keys)
- [Generated a new SSH key](/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent)
- [Added a new SSH key to your GitHub account](/articles/adding-a-new-ssh-key-to-your-github-account)
When you test your connection, you'll need to authenticate this action using your password, which is the SSH key passphrase you created earlier. For more information on working with SSH key passphrases, see ["Working with SSH key passphrases"](/articles/working-with-ssh-key-passphrases).
{{ site.data.reusables.command_line.open_the_multi_os_terminal }}
2. Enter the following:
```shell
$ ssh -T git@{{ site.data.variables.command_line.codeblock }}
# Attempts to ssh to {{ site.data.variables.product.product_name }}
```
You may see a warning like this:
```shell
> The authenticity of host '{{ site.data.variables.command_line.codeblock }} (IP ADDRESS)' can't be established.
> RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
> Are you sure you want to continue connecting (yes/no)?
```
or like this:
```shell
> The authenticity of host '{{ site.data.variables.command_line.codeblock }} (IP ADDRESS)' can't be established.
> RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
> Are you sure you want to continue connecting (yes/no)?
```
3. Verify that the fingerprint in the message you see matches one of the messages in step 2, then type `yes`:
```shell
> Hi <em>username</em>! You've successfully authenticated, but GitHub does not
> provide shell access.
```
{% linux %}
You may see this error message:
```shell
...
Agent admitted failure to sign using the key.
debug1: No more authentication methods to try.
Permission denied (publickey).
```
This is a known problem with certain Linux distributions. For more information, see ["Error: Agent admitted failure to sign"](/articles/error-agent-admitted-failure-to-sign).
{% endlinux %}
4. Verify that the resulting message contains your username. If you receive a "permission denied" message, see ["Error: Permission denied (publickey)"](/articles/error-permission-denied-publickey).