remote side message banner

 Banner is nothing just a warning message or displays some message about the device. If you try to login remote machine, you can set some message before login the device.

Create a file under /etc directory

vim /etc/myban

Type some message here in this file

Then go to /etc/ssh/sshd_config file to set this banner path.

Banner /etc/myban

Restart the service of ssh

Systemctl restart sshd

Now login remotely you will see this message

You’re done



Please enter your comment!
Please enter your name here