ssh.sh 324 B

12345678910111213141516
  1. #!/bin/sh
  2. echo '
  3. _
  4. _____| |_
  5. (_-<_-< . \
  6. /__/__/_||_|
  7. '
  8. . bin/checkroot.sh
  9. sed -i 's/#PermitRootLogin\ prohibit-password/PermitRootLogin prohibit-password/g' /etc/ssh/sshd_config
  10. sed -i 's/#PermitEmptyPasswords\ yes/PermitEmptyPasswords no/g' /etc/ssh/sshd_config
  11. /etc/init.d/sshd restart
  12. echo "SSH secured"