Infra2024년 6월 29일1분 읽기

Ubuntu 서버 초기 설정 체크리스트 — 보안부터 성능까지

YS
YoungSam
조회 917

1. 시스템 업데이트

apt update && apt upgrade -y

2. 방화벽 설정

ufw allow 22/tcp
ufw allow 80/tcp
ufw allow 443/tcp
ufw enable

3. SSH 보안

# /etc/ssh/sshd_config
PermitRootLogin no
PasswordAuthentication no
Port 2222

4. fail2ban

apt install fail2ban
systemctl enable fail2ban

5. 자동 보안 업데이트

apt install unattended-upgrades
dpkg-reconfigure unattended-upgrades
UbuntuLinuxSecurity

댓글 0

아직 댓글이 없습니다.