2011-09-07 57 views
5

ERROR: Permission to durrantm/linker.git denied to kevinzen. fatal: The remote end hung up unexpectedly混帳推主產地拒絕給出(github上)

我已經嘗試了很多事情來改變/設置我的身份,擺脫「kevinzen」

更新的誤差容許 - 最後決議是我已經添加了我的公鑰......但是...我錯過了幾個字符,所以它是無效的。粘貼在GitHub上正確的密鑰固定它

~/.ssh/與文件

  • config
  • id_dsa
  • id_dsa.pub
  • id_kb_rsa
  • id_kb_rsa.pub
  • id_rsa
  • id_rsa.pub
  • known_hosts

我已經做了

git config --global user.name 
git config --global user.email 
git remote add origin [email protected]:durrantm/linker.git 

我已經將我的本地SSH密鑰與我的信息(不kevinz)對這款機器的github SSH密鑰。

我也試過: ssh [email protected] The authenticity of host 'github.com. (207.97.227.239)' can't be established. RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'github.com.' (RSA) to the list of known hosts. PTY allocation request failed on channel 0

是不知道的PTY錯誤。仍然卡住。

+2

你的公鑰是在這裏註冊的:https://github.com/account/ssh?你可以仔細檢查一下嗎? – Boldewyn

+0

您是否檢查過'〜/ .ssh'中的文件是否有提及kevinzen? –

+0

我查了一下,把這些文件和'cat * |'放在一起grep kevinzen'但沒有發現。奇怪。 –

回答

7

您是否在GitHub上安裝了密鑰?你有閱讀幫助部分嗎?

您可以列出your own keys as saved at GitHub

curl https://github.com/<username>.keys 

是否檢查的關鍵之一是匹配的關鍵之一?比較:

cat ~/.ssh/id_*.pub 
+0

好問題。是的,我已經將我的本地SSH密鑰添加到github,但問題依然存在。 –

+1

更仔細地檢查密鑰表明它不完整。 –

3

我有同樣的問題,我的解決方案很簡單。我已經有我的鑰匙設置和一切,一直試圖運行:

git config --global user.name IceMupppet 

通過我的〜/ .ssh細算/我注意到,在運行:

ssh-add -l 

我看到簡單地使用權git帳戶我剛剛添加了正確的文件:

ssh-add ~/.ssh/id_IceMupppet_rsa 

...然後git push origin master工作正常。我在我的ssh配置中有一個別名,用於爲我的工作和個人使用不同的密鑰,但由於某些原因,仍然必須執行此步驟。