我正在使用“火箭科学”的 bash 脚本从我的本地机器快速将 Wordpress 代码部署到共享主机。一切都工作到昨天。现在我只是参与了与托管管理员的讨论,试图建议我一切都好。
这是脚本:
#!/bin/bash
printf "Running gulp\n"
gulp --production
printf "Running rsync\n"
rsync -vzrP --update ~/Code/Project/wp-content/themes/foo-theme mylogin@shared-hosting-server.com:/home/mylogin/domains/example.com/public_html/wp-content/themes/ --delete
Run Code Online (Sandbox Code Playgroud)
为了不一直提示输入密码,我将我的密钥添加到known_hosts服务器的.ssh目录中。几个月来,它完全没有问题。昨天我收到消息“身份已更改...”
Running rsync
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 RSA key sent by the remote host …Run Code Online (Sandbox Code Playgroud) rsync ×1