To create warning banner, so whenever anyone attempts to SSH onto your server they will be greeted with a message.

  • Edit the / file

sudo nano /etc/

  • Enter your message:
I am such a hero, as I've got this to work XD

Although Access is limited to Authorized Individuals
If you are not Authorized please disconnect ASAP!!

All actions are recorded and monitored!
  • You will need to update, the ssh daemon configuration file

sudo nano /etc/ssh/sshd_config

  • Look for this line that starts with Banner, and delete the #. The should look like this:

Banner /etc/

  • Restart the ssh daemon

sudo service ssh restart

When next login you will be prompted with the message that you just wrote :D

Share on LinkedIn
Share on Reddit