- remote host identification has c
- REMOTE HOST IDENTIFICATION HAS C
- REMOTE HOST IDENTIFICATION HAS C
- REMOTE HOST IDENTIFICATION HAS C
- REMOTE HOST IDENTIFICATION HAS C
- REMOTE HOST IDENTIFICATION HAS C
- REMOTE HOST IDENTIFICATION HAS C
- REMOTE HOST IDENTIFICATION HAS C
- REMOTE HOST IDENTIFICATION HAS C
- ssh for mac telnet to centos
某天,
当你吃着火锅,唱着歌,
ssh 你的服务器时,
发现失败了,
还弹出一段英文吓唬你。
如果是下面这样的英文:
remote host identification has changed
那么你来对地方了,
别紧张,
如果出现上面的提示,
说明秘钥已经变化了,只要换新的秘钥即可。
在终端输入下面的命令,删除秘钥
ssh-keygen -R <yourhostnam or ip address>
其实就是删除~/.ssh/known_hosts 里对应的秘钥,
也就是说可以用vim 打开那个文件删除对应秘钥也是可以的。
然后再用ssh登录时候,
服务器发现你没有携带秘钥,
会自动发送公钥给你加密,
这时~/.ssh/known_hosts里对应秘钥就更新了
之后就可以愉快的用ssh登录了
网友评论