#/bin/bash
sed -i '/#Port 22/c\Port 5555' /etc/ssh/sshd_config
sed -i '/#PermitRootLogin yes/c\PermitRootLogin no'  /etc/ssh/sshd_config
sed -i '/#PermitEmptyPasswords no/c\PermitEmptyPasswords no'  /etc/ssh/sshd_config
sed -i '/X11Forwarding yes/c\X11Forwarding no'  /etc/ssh/sshd_config
cat > /etc/issue.ssh <<EOF
NOTICE TO USERS
You try to login to a personal computer
you all operations will be recorded
EOF
sed -i '/#Banner none/c\Banner /etc/issue.ssh'  /etc/ssh/sshd_config