[linux] ssh 접속 경고 메세지 설정

혹시·2025년 3월 19일

/etc/motd - 로컬 접속, 원격 접속 모두에 로그인 성공 후 보여줄 내용

  1. vi /etc/motd
    <내용 작성>

  2. vi /etc/ssh/sshd_config 파일에 생성한 파일 지정

#no default banner path
#Banner none

->

#no default banner path
Banner /etc/motd

  1. service sshd restart

  2. 기본 메세지 비활성화 chmod -x /etc/update-motd.d/*

profile
클라우드하는 귀여운 애

0개의 댓글