Setup Banner on Console and Remote login CentOS/RHEL 6

Example add below banner.


Steps SSH console login banner CentOS/RHEL 6:
– Login as root.
– Edit in /etc/motd insert the banner message then save.
# vi /etc/motd

Steps SSH remote login banner CentOS/RHEL 6
– Login as root
– Edit in /etc/issue.net insert the banner message then save.
# vi /etc/issue.net
– Edit /etc/sshd/sshd_config
# vi /etc/sshd/sshd_config

-Restart sshd service
# service sshd restart

Reference:
https://wiki.centos.org/TipsAndTricks/BannerFiles


Related posts:

Leave a Reply

Your email address will not be published. Required fields are marked *