Linux/RedHat, CentOS, ubuntu

Linux 배너파일(issue, issue.net, motd)과 ssh 배너설정

Pydole 2019. 10. 15. 12:59
파일 내용
/etc/issue 사용자가 로그인할 때, "login: " 메세지를 보여주기 전에 보여지는 메세지 . (로컬 터미널)
/etc/issue.net 사용자가 로그인할 때, "login: " 메세지를 보여주기 전에 보여지는 메세지 . (Telnet)
/etc/motd 로그인이 성공되었을 때 보여지는 메세지. (Telnet, SSH)

 



/etc/issue.net

 

# cat /etc/issue.net
issue.net massge test

 

 

login: 메세지전 issue.net massge test 메세지 출력
login: 
Password:

 

 


/etc/motd

 

 

# cat /etc/motd
motd msg test

 

로그인 성공 후 "motd msg test" 메세지 출력 

motd msg test

 

 


 

요즘 보안을 이유로 대부분 SSH를 사용하고 있는데, etc/issue.net 파일은 Telent 이기 때문에 아래와 같이

/etc/ssh/sshd_config 파일에 etc/issue.net 경로를 지정해주면 SSH도 같이 쓸 수 있다.

세팅 후 sshd 서비스를 재기동해 주면 적용이 된다.

sshbanner