Вы можете настроить брандмауэр для блокировки всего.
Чтобы заблокировать все (для всех пользователей, включая корень):
sudo iptables -P INPUT DROP
sudo iptables -P OUTPUT DROP
sudo iptables -P FORWARD DROP
Чтобы снова включить:
sudo iptables -P INPUT ACCEPT
sudo iptables -P OUTPUT ACCEPT
Используйте одинарные кавычки для такого сообщения:
ssh user@host "zenity --warning --width=500 --no-wrap --text='Your $VPN is not connected. Please connect it or inform to engineer' --display=:0"
Или избегайте двойных кавычек для сообщения следующим образом:
ssh user@host "zenity --warning --width=500 --no-wrap --text=\"Your $VPN is not connected. Please connect it or inform to engineer\" --display=:0"
Используйте одинарные кавычки для такого сообщения:
ssh user@host "zenity --warning --width=500 --no-wrap --text='Your $VPN is not connected. Please connect it or inform to engineer' --display=:0"
Или избегайте двойных кавычек для сообщения следующим образом:
ssh user@host "zenity --warning --width=500 --no-wrap --text=\"Your $VPN is not connected. Please connect it or inform to engineer\" --display=:0"
Используйте одинарные кавычки для такого сообщения:
ssh user@host "zenity --warning --width=500 --no-wrap --text='Your $VPN is not connected. Please connect it or inform to engineer' --display=:0"
Или избегайте двойных кавычек для сообщения следующим образом:
ssh user@host "zenity --warning --width=500 --no-wrap --text=\"Your $VPN is not connected. Please connect it or inform to engineer\" --display=:0"