#!/bin/sh sudo if [[ $1 == "enable" ]]; then sed -i -e 's/#ListenAddress ::\nListenAddress 127.0.0.1/#ListenAddress ::/g' /etc/ssh/sshd_config elif [[ $1 == "disable" ]]; then sed -i -e '/ListenAddress 127.0.0.1/d' /etc/ssh/sshd_config fi sudo -k