SSH Login Banner
Want a custom banner or warning message when a user connects via SSH on your server?
Skill level: Beginner
OS: Linux
Prerequisites: Understand how to edit a file with vim or other text editor in Linux.
Dependencies:
Config files:
/etc/ssh/sshd_config
/etc/issue.net
- Open
/etc/ssh/sshd_configand look for the line withBannerin it and point it to your/etc/issue.netfile:
Banner /etc/issue.net - Generate a banner:
figlet -f banner [string] - Copy and paste your banner into
/etc/issue.netto add your message. - Restart sshd:
sudo -i service sshd restart
