2012-12-08 47 views
0

,我也給文件夾和文件的權利permition。但我仍然有這個。任何想法?SSH,github上,它亙古不變的,我相信我上傳我的SSH密鑰到GitHub的工作

➜ 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公鑰是否被複製爲一行 line:在GitHub ssh字段中很容易複製它的多行內容。

如果只有您的公鑰已正確複製並導入到GitHub上,/Users/seeker/.ssh/id_rsa(.pub)才能正常工作(如果您的ssh目錄是properly protected)。


Connecting to github.com [0.0.62.138] port 22. 

GitHub page明確提到:

# 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. 

的連接應該是207.97.227.239端口22,除非你覆蓋了設置使用SSH通過HTTPS。

另外請確保您在配置文件中使用/聲明瞭git用戶。 刪除您~/.ssh/config文件,並嘗試:

ssh -vT [email protected] 
+0

我相信在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進行身份驗證時,用戶應該始終是git--而不是您的個人用戶名。

嘗試ssh -vT [email protected]

0

請注意,GitHub不提供shell訪問。

你需要更新你的GitHub的關鍵puplic這樣就可以推動。請按照steps

你一個測試你的鑰匙/ SSH連接提到here