보관함

colortail config

COLOR magenta { # matches the date ^(… ..).*$ } COLOR cyan { # matches the time ^… .. (..:..:..).*$ # matches the word INFO ^.*(INFO|info).*$ } COLOR green { # matches the hostname ^… .. ..:..:.. ([^ ]+).*$ } COLOR yellow { # matches the “program” that wrote to syslog ^… .. ..:..:.. […]

ssh 비밀번호 사용하지 않기

client에서 할일

ssh-keygen -t rsa

~/.ssh/id_rsa.pub 공개키 생성되면 접속할 서버에 ./ssh/authorized_keys 파일 안에 복사 해 넣는다.

ubuntu sudo 암호 사용하지 않게

관리자 권한으로 /etc/sudoers.d/init-users 파일 생성하여 다음과 같이 작성

# User rules for id id ALL=(ALL) NOPASSWD:ALL