3 ms·
!sh <enter> trying to get the last server I ssh'ed back and getting shutdown -h -t 0 on a very remote server instead. My audible "doh!" and desperate "init 3
by noonespecial 17y ago
!sh <enter>
trying to get the last server I ssh'ed back and getting
shutdown -h -t 0
on a very remote server instead. My audible "doh!" and desperate "init 3" did not save me. Fear the !.
- lucumo 17y agoYou might be interested in a program called "molly-guard". It overrides shutdown/reboot/halt/poweroff with a shell script that detects if you're in an ssh session. If that's so, it will prompt for the hostname of the host you want to shutdown. It has saved me a few times.