无法将主机添加到已知主机列表 [英] Failed to add the host to the list of know hosts
问题描述
Mac OSX Lion 10.7.
为了解决奇怪的环境问题(自制软件没有安装wget,并且我有各种各样的怪异的块和错误),我卸载了zschrc和homebrew以及其他一些东西,然后安装了鱼壳. /p>
现在,每当我尝试从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(也带有"authenticity ..."提示)到Amazon ec2实例,尽管我在情况变得绝望时尝试将id_rsa和id_rsa.pub复制到那里.
知道发生了什么吗?我很想解决此问题,因此在推/拉时不会得到很多提示.
编辑我成功地遵循了这些说明前一阵子,所以我在Github上确实有我的ssh密钥,并且它们被识别,因此当我运行 ssh -T git@github.com 时,我会得到
Hi sashafklein! You've successfully authenticated, but GitHub does not provide shell access.
似乎完全是我的 local 计算机对我的ssh情况不满意.
应该知道host_hosts不是平面文件,不是目录吗?
如果这不是问题,那么Github上的此页面可能会有所帮助.尝试将SSH与-v或-vv标志一起使用,以查看详细的错误消息.它可以让您更好地了解发生了什么.
Mac OSX Lion 10.7.
In an effort to get around weird environment stuff (homebrew wasn't installing wget, and I had all sorts of weird blocks and errors), I uninstalled zschrc and homebrew and a bunch of other stuff, then installed fish shell.
Now, whenever I try to push/pull to/from github, I get this error:
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).
So I tried to check the permissions of my ~./ssh folder, and got this, which looks fine to me:
-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
All that's in known_hosts is a pem file I used for ssh'ing (also with the "authenticity..." prompt) to an Amazon ec2 instance, though I tried copying id_rsa and id_rsa.pub there when things got desperate.
Any idea what's going on? I'd love to fix this so I don't get prompted all the many times I push/pull.
EDIT I followed these instructions successfully a while ago, so I do have my ssh keys on Github, and they're recognized, so that when I run ssh -T git@github.com, I get
Hi sashafklein! You've successfully authenticated, but GitHub does not provide shell access.
It seems to be exclusively my local computer that's unhappy with my ssh situation.
Shouldn't known_hosts be a flat file, not a directory?
If that's not the problem, then this page on Github might be of some help. Try using SSH with the -v or -vv flag to see verbose error messages. It might give you a better idea of what's failing.
这篇关于无法将主机添加到已知主机列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!