错误背景:
1、Ubuntu上面作为运行环境,Coding在本机的windows环境
2、在windows上安装sublime 3,然后保存代码通过xftp保存到Ubuntu虚机上面。
3、Ubuntu重装系统
4、然后使用sublime 下载新目录的代码,然后就报错了
错误内容:
Connecting to SFTP server "192.168.14.105" as "root" ......... failure (Host key verification failed)
The SSH host key has changed. This could indicate a potential security breach, or that the domain you are connecting to recently moved servers.
If you are confident this is not a security breach you can delete the old host key and try again.
1. Win XP: Start > Run > regedit.exe
Win Vista/7: Start > regedit
2. Expand to HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\SshHostKeys and delete the entry including @22:192.168.14.105
原因:因为sublime 在windows的注册表中把192.168.14.105的值注册,不能重新注册。
错误解决办法:
1、ctrl + R ,输入 regedit
2、删除HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\SshHostKeys下的 rsa2@22:192.168.14.105