运行下面的命令关掉web shell
systemctl disable shellinabox && systemctl stop shellinabox && sed -i 's/^#PasswordAuthentication yes/PasswordAuthentication no/g' /etc/ssh/sshd_config && service sshd restart
打开web shell(重新打开web shell有中毒风险,请谨慎操作)
ssh systemctl enable shellinabox && systemctl start shellinablox
复制命令点击运行
如果运行命令显示如下图出现蓝色字体,说明关闭成功,出现红色字体说明失败