vmware / photon

Minimal Linux container host
https://vmware.github.io/photon
Other
3.04k stars 698 forks source link

Photon upgrade script cases server ssh hash to be changed #757

Open alexeyzimarev opened 6 years ago

alexeyzimarev commented 6 years ago

I have upgraded Photon OS from 1.0 to 2.0 using the photon-upgrade.sh script provided by VMWare. This machine was the master node of our test Kubernetes cluster.

After the upgrade,t he ssh certificate of the machine has changed and all k8s stuff stopped working.

Does this suppose to happen, because the script produced no warnings or anything that can indicate this is going to happen?

Complete!
Reboot is recommended after an upgrade. Reboot now(y/n)?y
Connection to 10.106.0.55 closed by remote host.
Connection to 10.106.0.55 closed.
 ✘  ~/Downloads  ssh root@10.106.0.55
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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:mfdwo/FRmpyxTwbSA6Ai+tyVAUprlfDaW4VuttE/AJA.
Please contact your system administrator.
Add correct host key in /home/alexey/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /home/alexey/.ssh/known_hosts:28
  remove with:
  ssh-keygen -f "/home/alexey/.ssh/known_hosts" -R 10.106.0.55
ECDSA host key for 10.106.0.55 has changed and you have requested strict checking.
Host key verification failed.
YustasSwamp commented 6 years ago

Thanks for reporting! We'll investigate it.