2012-12-08 2 views
0

나는 github에 내 ssh 키를 업로드하고, 또한 폴더와 파일을 오른쪽으로 옮깁니다. 그러나 나는 아직도 이것을 얻었다. 애니 데아?ssh, github, doesnot work

➜ python-google ssh -vT github.com  
    OpenSSH_5.6p1, OpenSSL 0.9.8r 8 Feb 2011 
    debug1: Reading configuration data /etc/ssh_config 
    debug1: Applying options for * 
    debug1: Connecting to github.com [0.0.62.138] port 22. 
    debug1: Connection established. 
    debug1: identity file /Users/seeker/.ssh/id_rsa type 1 
    debug1: identity file /Users/seeker/.ssh/id_rsa-cert type -1 
    debug1: identity file /Users/seeker/.ssh/id_dsa type -1 
    debug1: identity file /Users/seeker/.ssh/id_dsa-cert type -1 
    debug1: Remote protocol version 2.0, remote software version OpenSSH_5.5p1 Debian-6+squeeze1+github8 
    debug1: match: OpenSSH_5.5p1 Debian-6+squeeze1+github8 pat OpenSSH* 
    debug1: Enabling compatibility mode for protocol 2.0 
    debug1: Local version string SSH-2.0-OpenSSH_5.6 
    debug1: SSH2_MSG_KEXINIT sent 
    debug1: SSH2_MSG_KEXINIT received 
    debug1: kex: server->client aes128-ctr hmac-md5 none 
    debug1: kex: client->server aes128-ctr hmac-md5 none 
    debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent 
    debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP 
    debug1: SSH2_MSG_KEX_DH_GEX_INIT sent 
    debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY 
    debug1: Host 'github.com' is known and matches the RSA host key. 
    debug1: Found key in /Users/seeker/.ssh/known_hosts:1 
    Warning: Permanently added the RSA host key for IP address '0.0.62.138' to the list of known hosts. 
    debug1: ssh_rsa_verify: signature correct 
    debug1: SSH2_MSG_NEWKEYS sent 
    debug1: expecting SSH2_MSG_NEWKEYS 
    debug1: SSH2_MSG_NEWKEYS received 
    debug1: Roaming not allowed by server 
    debug1: SSH2_MSG_SERVICE_REQUEST sent 
    debug1: SSH2_MSG_SERVICE_ACCEPT received 
    debug1: Authentications that can continue: publickey 
    debug1: Next authentication method: publickey 
    debug1: Offering RSA public key: /Users/seeker/.ssh/id_rsa 
    debug1: Authentications that can continue: publickey 
    debug1: Trying private key: /Users/seeker/.ssh/id_dsa 
    debug1: No more authentication methods to try. 

나는 내 ssh 키를 github에 업로드하고, 폴더와 파일을 오른쪽으로 옮깁니다. 그러나 나는 아직도 이것을 얻었다. 애니 데아?

답변

0

ssh 공개 키가 하나의 복사본으로 복사되었는지 확인하십시오. 행 : GitHub ssh 필드에 여러 행으로 복사하기 쉽습니다.

공개 키가 올바르게 복사되고 /Users/seeker/.ssh/id_rsa(.pub)이 작동하는 GitHub에서 가져온 경우에만 (ssh 디렉토리가 properly protected 인 경우).


Connecting to github.com [0.0.62.138] port 22. 

GitHub page 명확하게 언급 : SSH을 통해 HTTPS를 사용하도록 설정을 무시하지 않는 한

# debug1: Reading configuration data /Users/you/.ssh/config 
# debug1: Reading configuration data /etc/ssh_config 
# debug1: Applying options for * 
# debug1: Connecting to github.com [207.97.227.239] port 22. 

연결이 포트 22207.97.227.239에 있어야한다.

또한 설정 파일에서 git 사용자를 사용 중이거나/신고하고 있는지 확인하십시오. 당신의 ~/.ssh/config 파일을 제거하고, 시도 : 당신이로 인증하고 싶은 사용자 당신은 지정하지 않은

ssh -vT [email protected] 
+0

같은 키/SSH 연결 내가 GitHub의에서 키 id_rsa.pub이 옳다 확신합니다. permition은 괜찮습니다. – user1263778

+0

@ user1263778 아직 http://www.quora.com/Why-is-github-showing-SSH%EF%BC%9APermission-denied-publickey처럼 보입니다. 나는 다른 점을 확인하기 위해 나의 대답을 편집했다. – VonC

+0

좋습니다. 감사합니다. 나는 노력할 것이다. – user1263778

0

합니다. GitHub에 인증 할 때, 사용자는 항상 개인 ID가 아니라 git이어야합니다.

시도 ssh -vT [email protected].

0

GitHub는 쉘 액세스를 제공하지 않습니다.

푸시 할 수 있도록 github에서 puplic 키를 업데이트해야합니다. steps를 따르십시오 :

당신 테스트 언급 here