Are you sure you want to continue connecting etc ssh ssh_config StrictHostKeyChecking no
2016-08-11 12:46
411 查看
Are you sure you want to continue connecting (yes/no)
每次ssh 进入一台新机器都会跳出如下的提示:
The authenticity of host '111.222.333.444 (111.222.333.444)' can't be established.
RSA key fingerprint is f3:cf:58:ae:71:0b:c8:04:6f:34:a3:b2:e4:1e:0c:8b.
Are you sure you want to continue connecting (yes/no)?
感觉很烦,有以下方法可以解决这个问题:
1. 加入一个参数:
ssh -o "StrictHostKeyChecking no" user@host
2.修改配置文件
在文件/etc/ssh/ssh_config(全局)或者~/.ssh/config(某用户)开头加入以下内容:
Host 192.168.0.*
StrictHostKeyChecking no
UserKnownHostsFile=/dev/null
or
Host *
StrictHostKeyChecking no
UserKnownHostsFile=/dev/null
每次ssh 进入一台新机器都会跳出如下的提示:
The authenticity of host '111.222.333.444 (111.222.333.444)' can't be established.
RSA key fingerprint is f3:cf:58:ae:71:0b:c8:04:6f:34:a3:b2:e4:1e:0c:8b.
Are you sure you want to continue connecting (yes/no)?
感觉很烦,有以下方法可以解决这个问题:
1. 加入一个参数:
ssh -o "StrictHostKeyChecking no" user@host
2.修改配置文件
在文件/etc/ssh/ssh_config(全局)或者~/.ssh/config(某用户)开头加入以下内容:
Host 192.168.0.*
StrictHostKeyChecking no
UserKnownHostsFile=/dev/null
or
Host *
StrictHostKeyChecking no
UserKnownHostsFile=/dev/null
相关文章推荐
- ssh 登录出现Are you sure you want to continue connecting (yes/no)?解决方法
- ssh 登录出现Are you sure you want to continue connecting (yes/no)?解决方法
- ssh 登录出现Are you sure you want to continue connecting (yes/no)?解决方法
- 取消弹出信息:Are you sure you want to continue connecting
- No RSA host key is known for had-0 and you have requested strict checking.
- The authenticity of host 'www.101du.net (60.210.17.34)' can't be established. RSA key fingerprint is xxxx. Are you sure you want
- Git error: Unable to negotiate with X.X.X.X : no matching host key type found . their offer: ssh-dss
- Unable to negotiate with XX.XX.XX.XX: no matching host key type found. Their offer: ssh-dss
- RSA host key for mysharebook.cn has changed and you have requested strict checking. Host key verific
- RSA host key for mysharebook.cn has changed and you have requested strict checking. Host key verific
- CentOS:ECDSA host key "ip地址" for has changed and you have requested strict checking(转)
- An error "Host key verification failed" when you connect to other computer by OSX SSH
- 【报错】RSA host key for 192.168.1.xxx has changed and you have requested strict checking.
- RSA host key for HOST has changed and you have requested strict checking
- 错误:RSA host key for [ip address] has changed and you have requested strict checking.(已解决)
- ssh StrictHostKeyChecking
- “Are you sure you want to proceed?” message on login
- 启动ssh服务时,提示Could not load host key: /etc/ssh/ssh_host_rsa_key
- Press any key to change color, do you want to try it. Please hurry up!
- CodeIgniter 错误: In order to use the Session class you are required to set an encryption key