您的位置:首页 > 运维架构

GIT版本管理异常总结001---copssh安装后登录异常The authenticity of host '127.0.0.1 (127.0.0.1)' can't be established.

2017-03-29 22:15 3395 查看
GIT版本管理异常总结001---copssh安装后登录异常The authenticity of host '127.0.0.1 (127.0.0.1)' can't be established.

C:\Users\Administrator>ssh Administrator@127.0.0.1

The authenticity of host '127.0.0.1 (127.0.0.1)' can't be established.

ECDSA key fingerprint is e8:49:9b:17:f0:d5:99:ac:01:d8:15:e4:55:86:e4:1e.

Are you sure you want to continue connecting (yes/no)? y

Please type 'yes' or 'no': yes

Warning: Permanently added '127.0.0.1' (ECDSA) to the list of known hosts.

Write failed: Software caused connection abort

可以看到报错了对吧,这是为什么啊?

其实就是ssh,对你的本机做一个检查,看看他是否经过

验证,咱们直接,通过下面的配置,让他不去验证就好了:

H:\ProgramFiles\ICW\etc\ssh_config

这个文件,咱们打开:

#   ProxyCommand ssh -q -W %h:%p gateway.example.com

在最后加上这两句话就可以了.

StrictHostKeyChecking no

UserKnownHostsFile /dev/null

好保存这个文件以后,咱们在:

cmd中再试试:

C:\Users\Administrator>ssh Administrator@127.0.0.1

Warning: Permanently added '127.0.0.1' (ECDSA) to the list of known hosts.

Administrator@127.0.0.1's password:

可以了对吧,注意这里的密码,输入Administrator

用户对应的密码.

---------------------------
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐