1. 설명
- 비인가자에게 불필요한 서버 정보 제공 방지
- 접속자에게 인가자만 접속해야 한다는 경각심을 심어줌.
2. 확인 및 삭제
2.1 서버 ssh 접속 후 패스워드 입력하기 전 메시지
2.1.1 /etc/issue.net 파일 열기
> [root@localhost ~]# vi /etc/issue.net
2.1.2 경고 메시지 입력
(예시) WARNING : Unauthorized access to this system is forbidden and will be prosecuted by law. By accessing this system, you agree that your actions may be monitored if unauthorized usage is suspected.
2.1.3 /etc/ssh/sshd_config 파일 열기
> [root@localhost ~]# vi /etc/ssh/sshd_config
2.1.4 내용 추가
Banner /etc/issue.net
2.1.5 ssh 데몬 재시작
> [root@localhost ~]# service sshd restart
2.2 서버 ssh 접속 및 패스워드 입력 후 정상로그인 후 메시지
2.2.1 /etc/motd 파일 열기
> [root@localhost ~]# vi /etc/motd
2.2.2 경고 메시지 입력
(예시) WARNING : Unauthorized access to this system is forbidden and will be prosecuted by law. By accessing this system, you agree that your actions may be monitored if unauthorized usage is suspected.
3. 기타
- /etc/issue.net 내용 수정 후 sshd 서비스 재시작 필요
끝.