#!/usr/bin/env bash # Molly-Guard try to block you from accidentally running or shutting down or rebooting Linux servers via ssh. apt-get install -y molly-guard # sudo and tmux stop detection of the SSH session. (It also affects screen the same way - this is a known issue listed in man molly-guard.) cat > /etc/sudoers.d/molly-guard << EOF Defaults env_keep += SSH_CONNECTION EOF