Enable/disable SSH X11 forwarding
Simple script to enable or desable the X11 forwarding over SSH #!/bin/bash SSHD_CONFIG=/etc/ssh/sshd_config SSH_SVC=/etc/init.d/sshd v=`grep -m 1 -e “X11Forwarding” ${SSHD_CONFIG} | awk ‘{ if( $0 ~ /^#/ ) print “no”; else print $2; }’` enabled=0; if [ ${v} == 'yes' ]; then enabled=1; fi case…






