答案1
请使用单引号括住消息,如下所示:
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"