This is how you can display a message or warning in Linux when connecting via SSH.
You start off by editing the message you want to display,
1 |
vim /etc/issue.net |
Then specify the location in the ssh server config
1 2 |
echo "banner /etc/issue.net " >> /etc/ssh/sshd_config /etc/init.d/ssh restart |