timberline-secondary / hackerspace-scripts-2

Python based control panel and scripts for managing Timberline's Digital Hackerspace
GNU General Public License v3.0
3 stars 1 forks source link

self-repair of stale ssh keys #97

Open tylerecouture opened 1 year ago

tylerecouture commented 1 year ago

If I try to ssh into a newly imaged computer, I get this: image

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:

image

punctuations commented 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.

tylerecouture commented 1 year ago

We have no control over that