SSH 및 root 로그인 강화
비밀번호 비활성화, 암호화 제한, 키 전용 root, fail2ban—5분 만에 SSH 위험의 99% 제거.
공개 VPS는 몇 분 만에 SSH 스캔을 받습니다. NoctisNode는 기본이 key-only 공급이지만 몇 줄이면 무차별 대입이 무의미해집니다.
sshd_config
# /etc/ssh/sshd_config.d/hardened.conf
PermitRootLogin prohibit-password
PasswordAuthentication no
KbdInteractiveAuthentication no
AllowUsers root deploy
MaxAuthTries 3fail2ban
apt install -y fail2ban
printf '[sshd]\nenabled = true\nmaxretry = 3\nbantime = 3600\n' > /etc/fail2ban/jail.d/sshd.conf
systemctl enable --now fail2ban체크리스트
- ▹Ed25519 키 사용. 기억보다 오래된 RSA 키는 은퇴시키세요.
- ▹포트 22 변경은『스캐너에게는 숨지만 공격자에게는 아님』을 이해한 경우에만.
- ▹자물쇠 잠그기 전 두 번째 로그인 경로(콘솔/VNC) 확보.