Mac OSX Lion 10.7.
为了解决一些奇怪的环境问题(homebrew无法安装wget,我遇到了各种奇怪的阻塞和错误),我卸载了zschrc、homebrew和其他一些东西,然后安装了fish shell。
现在,每当我尝试从github中push/pull数据时,都会出现以下错误:
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连接(也出现了“authenticity…”提示),连接的是Amazon ec2实例,尽管在情况危急时我曾尝试将id_rsa和id_rsa.pub复制到其中。
你有什么想法吗?我很想解决这个问题,这样每次推送/拉取时就不需要频繁地提示我。
编辑 我之前成功地按照这些说明操作过,所以我的ssh密钥已经存在于Github上,并且被识别,因此当我运行ssh -T git@github.com时,会得到以下结果:
Hi sashafklein! You've successfully authenticated, but GitHub does not provide shell access.
看起来只有我的本地计算机对我的ssh情况不满意。
doctl
工具,请先使用ssh
直接连接IP。 - Jxek