Debian系统的Java安全设置主要包括以下几个方面:
sudo apt update
sudo apt upgrade
sudo apt get update
sudo apt get install defaultjdk
ufw
(Uncomplicated Firewall)限制入站和出站流量。sudo apt install ufw
sudo ufw enable
sudo ufw allow 80/tcp # 允许HTTP流量
sudo ufw allow 443/tcp # 允许HTTPS流量
/etc/pam.d/common-password
文件以实施密码复杂度要求。sudo
代替直接登录为root用户。/etc/ssh/sshd_config
文件,禁用root远程登录:PermitRootLogin no
Logwatch
或 Fail2ban
自动监控并报告系统活动和安全事件。sudo systemctl list-units --type=service --state=running
sudo systemctl disable <service-name>
ssh-keygen -t rsa
ssh-copy-id <username>@<remote-host>
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
推荐阅读:Debian Java安全设置有哪些要点