New Server Setup
Revi HQ
- 핸드북:기술로 돌아가기
이상적으로는 Ansible이나 Puppet으로 전자동화하고 싶지만 당장 설정하긴 힘드니 설정될 때까지 임시로 적어두는 방법.
비밀번호 로그인 끄기
# nano /etc/ssh/sshd_config
ChallengeResponseAuthentication no PasswordAuthentication no UsePAM no PermitRootLogin no
chrony
- ntp 삭제 후 chrony 설치
$ sudo apt-get purge ntp $ sudo apt-get install chrony
- timeserver 설정
$ sudo nano /etc/chrony/chrony.conf server time1.google.com iburst server time2.google.com iburst server time3.google.com iburst server time4.google.com iburst
hostname 설정
- 현재 hostname 체크
hostnamectl
- hostname 설정
sudo hostnamectl set-hostname $new_hostname
/etc/hosts
에서 새 hostname으로 로컬호스트 보게 설정sudo nano /etc/hosts 127.0.0.1 $new_hostname
시간대 설정
sudo dpkg-reconfigure tzdata