Open tylerecouture opened 1 year ago
The issue that is occurring is that when the PC is reimaged the PC is getting the same IP address as before, making the keys still valid, what needs to happen is for a computer to reimage (or reboot) with a different IP address than it last had.
We have no control over that
If I try to ssh into a newly imaged computer, I get this:
I assume this is why the lab-report is also failing on those computers.
We need to improve our little SSH class to be able to handle this. If an ssh connection fails for this reason, then it should try to repair by removing the stale local keys, but ask first with a warning message similar to that provided above in the screenshot
lab report script failing: