Photon upgrade script cases server ssh hash to be changed
Open
@xiaolin-vmware is already working on this.
Since Apr 12, 2018.
- Dominant language
- C
- Stars
- 3.2k
- Forks
- 692
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.