Login Banner
-
- Edit the /etc/ssh/sshd_config file.
nano /etc/ssh/sshd_config
- Add/edit config option
Banner /etc/ssh/banner_motd_login
- Make sure you create a new file called /etc/ssh/banner_motd_login.
nano /etc/ssh/banner_motd_login
- Restart sshd
systemctl restart sshd
Banner Example:
THIS DEVICE IS PART OF A PRIVATE NETWORK ########################################## ## ARISTA0202 DCS-7050S-52-F ## ## WEIGEL NETWORKING ## ## Unauthorized access is prohibited. ## ##########################################