{"meta":{"title":"Test de votre connexion SSH","intro":"Après avoir configuré votre clé SSH et l’avoir ajoutée à GitHub, vous pouvez tester votre connexion.","product":"Authentification","breadcrumbs":[{"href":"/fr/authentication","title":"Authentification"},{"href":"/fr/authentication/connecting-to-github-with-ssh","title":"Connexion avec SSH"},{"href":"/fr/authentication/connecting-to-github-with-ssh/testing-your-ssh-connection","title":"Tester votre connexion SSH"}],"documentType":"article"},"body":"# Test de votre connexion SSH\n\nAprès avoir configuré votre clé SSH et l’avoir ajoutée à GitHub, vous pouvez tester votre connexion.\n\nAvant de tester votre connexion SSH, vous devez déjà avoir :\n\n* [Vérifier les clés SSH existantes](/fr/authentication/connecting-to-github-with-ssh/checking-for-existing-ssh-keys)\n* [Générer une nouvelle clé SSH](/fr/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent)\n* [Ajouté une nouvelle clé SSH à votre compte GitHub](/fr/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account)\n\nVous devez authentifier cette action à l’aide de votre mot de passe, c’est-à-dire la phrase secrète de clé SSH que vous avez créée précédemment. Consultez « [Utilisation des mots de passe de clé SSH](/fr/authentication/connecting-to-github-with-ssh/working-with-ssh-key-passphrases) ».\n\n1. Ouvrez <span class=\"platform-mac\">Terminal</span><span class=\"platform-linux\">Terminal</span><span class=\"platform-windows\">Git Bash</span>.\n\n2. Entrez les informations suivantes :\n\n   ```shell copy\n   ssh -T git@github.com\n   # Attempts to ssh to GitHub\n   ```\n\n   Vous pouvez voir un avertissement comme celui présenté ci-dessous :\n\n   ```shell\n   > The authenticity of host 'github.com (IP ADDRESS)' can't be established.\n   > ED25519 key fingerprint is SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU.\n   > Are you sure you want to continue connecting (yes/no)?\n   ```\n\n3. Vérifiez que l’empreinte dans le message que vous voyez correspond à [l’empreinte de clé publique de GitHub](/fr/authentication/keeping-your-account-and-data-secure/githubs-ssh-key-fingerprints). Si c’est le cas, tapez `yes` :\n\n   ```shell\n   > Hi USERNAME! You've successfully authenticated, but GitHub does not\n   > provide shell access.\n   ```\n\n   <div class=\"ghd-tool linux\">\n\n   Le message d'erreur suivant peut s'afficher :\n\n   ```shell\n   ...\n   Agent admitted failure to sign using the key.\n   debug1: No more authentication methods to try.\n   Permission denied (publickey).\n   ```\n\n   Il s’agit d’un problème connu avec certaines distributions Linux. Pour plus d’informations, consultez « [Erreur : l’agent a reconnu un échec de signature](/fr/authentication/troubleshooting-ssh/error-agent-admitted-failure-to-sign) ».\n\n   </div>\n\n   > \\[!NOTE]\n   > La commande à distance doit sortir avec le code 1.\n\n4. Vérifiez que le message obtenu contient votre nom d’utilisateur. Si un message « autorisation refusée » s’affiche, consultez [Erreur : Autorisation refusée (clé publique)](/fr/authentication/troubleshooting-ssh/error-permission-denied-publickey).\n\n> \\[!TIP] Si vous accédez à GitHub sur un autre domaine tel que `octocorp.ghe.com`, vous devez remplacer `git@github.com` par `octocorp@octocorp.ghe.com`.\n>\n> ```shell\n> ssh -T octocorp@octocorp.ghe.com\n> # Attempts to ssh to octocorp.ghe.com\n> ```"}