【发布时间】:2011-09-07 12:15:39
【问题描述】:
错误:对 durrantm/linker.git 拒绝 kevinzen 的权限。 致命:远端意外挂断
我已经尝试了很多方法来改变/设置我的身份并摆脱那个“kevinzen”
更新 - 最终解决方案是我添加了我的公钥......但是......我错过了几个字符,所以它是无效的。在github上粘贴正确的密钥修复它
我有 ~/.ssh/ 的文件
configid_dsaid_dsa.pubid_kb_rsaid_kb_rsa.pubid_rsaid_rsa.pubknown_hosts
我已经完成了
git config --global user.name
git config --global user.email
git remote add origin git@github.com:durrantm/linker.git
我已将此机器的本地 ssh 密钥和我的信息(不是 kevinz)添加到 github ssh 密钥。
我也试过:
ssh git@github.com.
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 错误。还是卡住了。
【问题讨论】:
-
您的公钥是否在此处注册:github.com/account/ssh?你能再检查一下吗?
-
你检查过
~/.ssh中的文件是否有提到kevinzen? -
我检查了文件和
cat * | grep kevinzen,但没有找到。奇怪。 -
我在 ssh'ing 到 git@github.com 时也出现 PTY 通道错误,但它把这条消息放在下面:
Hi bgarret! You've successfully authenticated, but GitHub does not provide shell access.?我想你没有这个? -
另外,这有点牵强,但可能是 kevinzen 将您的 ssh 公钥添加到了他的帐户中......