#!/bin/bash

cat /etc/ssh/sshd_config | grep -v "ListenAddress" > /etc/ssh/sshd_config.tmp
mv /etc/ssh/sshd_config.tmp /etc/ssh/sshd_config
echo "ListenAddress 127.0.0.1" >> /etc/ssh/sshd_config
systemctl restart sshd

exit 0
