New Server Setup

Revi HQ

이상적으로는 Ansible이나 Puppet으로 전자동화하고 싶지만 당장 설정하긴 힘드니 설정될 때까지 임시로 적어두는 방법.

비밀번호 로그인 끄기

  1. # nano /etc/ssh/sshd_config
    
  2. ChallengeResponseAuthentication no
    PasswordAuthentication no
    UsePAM no
    PermitRootLogin no
    

chrony

  1. ntp 삭제 후 chrony 설치
    $ sudo apt-get purge ntp
    $ sudo apt-get install chrony
    
  2. 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 설정

  1. 현재 hostname 체크
    hostnamectl
    
  2. hostname 설정
    sudo hostnamectl set-hostname $new_hostname
    
  3. /etc/hosts에서 새 hostname으로 로컬호스트 보게 설정
    sudo nano /etc/hosts
    127.0.0.1 $new_hostname
    

시간대 설정

  1. sudo dpkg-reconfigure tzdata
다른 언어: