2012-04-19 174 views
4

我的工作是通過M Hartl的教程來了解Ruby on Rails。
我已經完成第6章和git push上混帳中心的工作,但我收到此錯誤:github上的權限被拒絕(publickey)

[email protected]:~/rails_projets/sample_app$ git push Permission denied (publickey).
fatal: The remote end hung up unexpectedly

我重新安裝一個新的公鑰的幫助,Git的指令

debug1: Next authentication method: publickey 
    debug1: Offering DSA public key: [email protected] 
    debug1: Authentications that can continue: publickey 
    debug1: Offering RSA public key: [email protected] 
    debug1: Authentications that can continue: publickey 
    debug1: Trying private key: [~/.ssh/id_rsa] 
    debug1: Trying private key: [~/.ssh/id_dsa] 
    debug1: No more authentication methods to try. 
    Permission denied (publickey). 

而且我有存儲庫中的文件:

[email protected]:~/.ssh$ ls
ak.bak config id_dsa id_dsa.pub id_rsa id_rsa.pub key_backup/ known_hosts

我做錯了什麼?

+1

請在您的示例應用程序目錄中發佈git remote -v的輸出。 – ngm 2012-04-19 21:29:06

回答

相關問題