Fail2ban

1 2 3 4 5 6 7 8 9 sudo apt-get install -y fail2ban cat << EOF | sudo tee /etc/fail2ban/jail.d/sshd.local [sshd] enabled = true port = 23422 EOF sudo systemctl reload fail2ban

Debian升级Testing

不建议升级testing 1 2 echo 'deb http://ftp.us.debian.org/debian/ testing main' | sudo tee /etc/apt/sources.list.d/testing.list sudo apt-get update && apt-get -y upgrade 参考链接 https://wiki.debian.org/DebianTesting