我租了一个共享托管服务器。我已经通过使用 ssh-copy-id 将登录设置为通过密钥(私有/公共),现在当我输入
ssh [email protected]
(因为我选择了密码,所以我得到一个 GUI 提示,要求输入密码)
我之前曾尝试过一次,但当时不明白发生了什么并取消了它 - 所以在第二次尝试之后我就达到了我的位置(它有效)。
(顺便说一句,我在服务器上安装了 Wordpress)
当我尝试
sudo scp webbsidekopia_1.zip [email protected]:/home/user
我收到消息:
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:0uLuPRGZodB+HQK+GtgdryIAxtaejIRTPBh/LPBrQwA.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /root/.ssh/known_hosts:4
remove with:
ssh-keygen -f "/root/.ssh/known_hosts" -R "68.183.33.121"
ECDSA host key for 68.183.33.121 has changed and you have requested strict checking.
Host key verification failed.
lost connection
这是正常的吗?我可以同时使用 ssh-copy-id 和 scp 吗?我应该删除主机吗?
本地 mashine 是 Linux Mint 19,服务器是 Ubuntu 18.4