本文已参与「新人创作礼」活动,一起开启掘金创作之路。
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
SHA256:Ms+BRn93GbOO1fwP6g1O+UwSRFv9KIUMGeoHDt70OfQ.
Please contact your system administrator.
Add correct host key in /Users/aliyunbaike/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/aliyunbaike/.ssh/known_hosts:6
ECDSA host key for 123.57.204.90 has changed and you have requested strict checking
解决方法 1: ssh-keygen -R "你的远程服务器ip地址"
j解决方法2: 重新配置免密登入
步骤 :
1、进入.ssh文件目录下,vim 编辑 config文件 ,将信息重新编辑到config中,格式为
Host xxx
HostName 公网IP地址
User 登入服务器的用户名称,如果是root直接写root
2、ssh-copy-id name (加在config文件中的免密登入名称,即Host的名称 )
输入进入云服务器的密码后,以后再登入云服务器就可以免密登入了