{"meta":{"title":"SSH 연결 테스트","intro":"SSH 키를 설정하고 GitHub에 추가한 후 연결을 테스트할 수 있습니다.","product":"인증","breadcrumbs":[{"href":"/ko/authentication","title":"인증"},{"href":"/ko/authentication/connecting-to-github-with-ssh","title":"SSH와 연결"},{"href":"/ko/authentication/connecting-to-github-with-ssh/testing-your-ssh-connection","title":"SSH 연결 테스트"}],"documentType":"article"},"body":"# SSH 연결 테스트\n\nSSH 키를 설정하고 GitHub에 추가한 후 연결을 테스트할 수 있습니다.\n\nSSH 연결을 테스트하기 전에 이미 다음을 수행한 상태여야 합니다.\n\n* [기존 SSH 키 확인](/ko/authentication/connecting-to-github-with-ssh/checking-for-existing-ssh-keys)\n* [새 SSH 키 생성](/ko/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent)\n* [ GitHub 계정에 새 SSH 키를 추가했습니다](/ko/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account)\n\n이전에 만든 SSH 키 암호를 사용하여 이 작업을 인증해야 합니다.\n[SSH 키 암호문 사용](/ko/authentication/connecting-to-github-with-ssh/working-with-ssh-key-passphrases)을(를) 참조하세요.\n\n1. <span class=\"platform-mac\">터미널</span><span class=\"platform-linux\">터미널</span><span class=\"platform-windows\">Git Bash</span>를 엽니다.\n\n2. 다음을 입력합니다.\n\n   ```shell copy\n   ssh -T git@github.com\n   # Attempts to ssh to GitHub\n   ```\n\n   다음과 같은 경고가 표시될 수 있습니다.\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. 표시되는 메시지의 지문이 [GitHub의 공개 키 지문](/ko/authentication/keeping-your-account-and-data-secure/githubs-ssh-key-fingerprints)과 일치하는지 확인합니다. 일치하면 `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   다음과 같은 오류 메시지가 표시될 수도 있습니다.\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   이는 특정 Linux 배포판의 알려진 문제입니다. 자세한 내용은 [오류: 에이전트가 서명 실패를 인정했습니다.](/ko/authentication/troubleshooting-ssh/error-agent-admitted-failure-to-sign)을(를) 참조하세요.\n\n   </div>\n\n   > \\[!NOTE]\n   > 원격 명령은 코드 1을 사용하여 종료되어야 합니다.\n\n4. 결과 메시지에 사용자 이름이 포함되어 있는지 확인합니다. \"권한 거부됨\" 메시지가 표시되면 [오류: 권한이 거부됨(publickey)](/ko/authentication/troubleshooting-ssh/error-permission-denied-publickey)을(를) 참조하세요.\n\n> \\[!TIP] 만약 `GitHub`과 같은 다른 도메인에서 octocorp.ghe.com에 액세스하는 경우, `git@github.com`를 `octocorp@octocorp.ghe.com`로 교체해야 합니다.\n>\n> ```shell\n> ssh -T octocorp@octocorp.ghe.com\n> # Attempts to ssh to octocorp.ghe.com\n> ```"}