SSH Warning: the RSA host key for differs from the key for the IP address
2011-10-20 09:21
525 查看
[hudson@sjbude183v .ssh]$ ssh soa@sjisbe381 ls /tmp
The authenticity of host 'sjisbe381 (10.100.87.11)' can't be established.
RSA key fingerprint is 8f:bd:9b:06:92:1d:0b:6e:0e:d0:f3:d1:cd:f7:f7:6e.
Are you sure you want to continue connecting (yes/no)?yes
Warning: Permanently added 'sjisbe381' (RSA) to the list of known hosts.
Warning: the RSA host key for 'sjisbe381' differs from the key for the IP address '10.100.87.11'
Offending key for IP in /builds/hudson/.ssh/known_hosts:36
Are you sure you want to continue connecting (yes/no)?
当ssh访问一台server时,如果出现“Warning: the RSA host key for differs from the key for the IP address”这样的信息,表示在known_hosts里已经有一台server和你正要访问的server的IP冲突。
另外一条类似于这样的信息“Offending key for IP in /builds/hudson/.ssh/known_hosts:36″,表示IP冲突位于known_hosts的第36行, 只要打开~/.ssh/known_hosts,删除第36行就可以将问题解决,或者直接运行一条命令搞定“sed -i -e ’36d’ ~/.ssh/known_hosts”。
如果你想彻底摆脱known_hosts,将“StrictHostKeyChecking no”添加到~/.ssh/config,这样以后访问新的server都不在有known_hosts的提示。
相关文章推荐
- SSH Warning: the RSA host key for differs from the key for the IP address
- SSH Warning: the RSA host key for differs from the key for the IP address
- SSH Warning: the RSA host key for differs from the key for the IP address
- Linux_SSH Warning: the RSA host key for differs from the key for the IP address
- git学习笔记 --- Warning: the ECDSA host key for 'myserver' differs from the key for the IP address 192.。
- git出现 Warning: the ECDSA host key for 'myserver' differs from the key for the IP address 192.。
- Fix "the ECDSA host key for 'your server' differs from the key for the IP address 'the ip'"
- Git Bash 提示 Warning: Permanently added the RSA host key for IP address
- Warning: Permanently added the RSA host key for IP address '192.30.253.113' to the list of known hos
- Warning: Permanently added the RSA host key for IP address '192.30.253.113' to the list of known hos
- Warning: Permanently added the RSA host key for IP address '192.30.253.113' to the list of known hos
- Permanently added the RSA host key for IP address '192.30.252.130' to the list of known hosts.
- Warning: Permanently added the RSA host key for IP address '192.30.253.113' to the list of known hos
- git clone error Warning: Permanently added the RSA host key for IP address '192.30.253.113' to the
- Warning: Permanently added the RSA host key for IP address '192.30.255.112' to the list of known hos
- Permanently added the RSA host key for IP address '192.30.252.130' to the list of known hosts.
- Github遇到Permanently added the RSA host key for IP address '192.30.252.128' to the list of known host
- Github遇到Permanently added the RSA host key for IP address '192.30.252.128' to the list of known host
- Warning: Permanently added the RSA host key for IP address '13.250.177.223' to the list of known hos
- Warning: Permanently added the RSA host key for IP address '13.250.177.223' to the list of known hos