Auto shutdown VM if no active SSH connections

from blog meain/blog, | ↗ original
Here is a simple workflow that I have extracted out into a blog. I generally have a VM on standby to offload some tasks over to that VM instead of running things on my laptop. One main example of this is when I am trying to do some experiment and check if a container still builds after I do some changes. I usually make the changes and offload the...