Mac OSX Lion 10.7
为了解决一些奇怪的环境问题(homebrew 无法安装 wget,我遇到了各种奇怪的阻塞和错误),我卸载了 zschrc 和 homebrew 以及其他一些东西,然后安装了 fish shell。
现在,每当我尝试向 github 推送/从 github 拉取内容时,都会出现这样的错误:
The authenticity of host 'github.com (204.232.175.90)' can't be established.
RSA key fingerprint is <string of colon-separated chars that I should probs keep private>.
Are you sure you want to continue connecting (yes/no)? yes
Failed to add the host to the list of known hosts (/Users/sasha/.ssh/known_hosts).
于是我试着检查 ~./ssh 文件夹的权限,得到的结果是这样的,在我看来没有问题:
-rw-r--r-- 1 sasha staff 97B Jul 9 22:56 config
-rw------- 1 sasha staff 1.7K May 16 2012 id_rsa
-rw-r--r-- 1 sasha staff 403B May 16 2012 id_rsa.pub
drwx------ 5 sasha staff 170B Jul 15 09:56 known_hosts
known_hosts 文件夹里只有一个 pem 文件,是我用来 ssh'ing 亚马逊 ec2 实例的(也是使用 "authenticity..." 提示),不过在情况危急时,我还试着复制了 id_rsa 和 id_rsa.pub。
你知道这是怎么回事吗?我很想解决这个问题,这样我在多次推/拉时就不会再收到提示了。
EDIT 我不久前成功地按照 这些说明进行了操作,所以我确实在 Github 上有我的 ssh 密钥,而且它们被识别了,所以当我运行 ssh -T [email protected] 时,我得到了
Hi sashafklein! You've successfully authenticated, but GitHub does not provide shell access.
看来只有我的本地电脑对我的 ssh 情况不满意。