ssh.sh 385 B

1234567891011121314151617
  1. #!/bin/sh
  2. echo '\033[35m
  3. __________ __ __
  4. / ___/ ___// / / /
  5. \__ \\__ \/ /_/ /
  6. ___/ /__/ / __ /
  7. /____/____/_/ /_/
  8. \033[0m'
  9. . bin/ssh.sh
  10. sed -i 's/#PermitRootLogin\ prohibit-password/PermitRootLogin no/g' /etc/ssh/sshd_config
  11. sed -i 's/#PermitEmptyPasswords\ yes/PermitEmptyPasswords no/g' /etc/ssh/sshd_config
  12. /etc/init.d/sshd restart
  13. echo "\033[92;1mSSH secured\033[Om"