SSH - X11Forwarding no
Description
Checks /etc/ssh/sshd_config for X11Forwarding yesSolution
sed -i 's/X11Forwarding.*yes/X11Forwarding no/' /etc/ssh/sshd_config
Check Script: ssh-no-x11-forward.sh
#!/bin/bash
if grep -q "X11Forwarding yes" /etc/ssh/sshd_config 2>/dev/null; then result_failed else result_ok fi
Comment on Disqus