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
/etc/ssh/sshd_config
and look for the line with Banner
in it and point it to your /etc/issue.net
file:Banner /etc/issue.net
figlet -f banner [string]
/etc/issue.net
to add your message. sudo -i service sshd restart