SSH Login Banner
From NippAero
how to add a ssh banner to display before the login prompt. This may be disabled in sshd by default depending on your distribution.
1. Login as the root user; create your login banner file
vi /etc/ssh/sshd-banner
Add your text to the file. Something like:
This computer system is for authorized users only. All activity is logged and regulary checked by systems personal. Individuals using this system without authority or in excess of their authority are subject to having all their services revoked. Any illegal services run by user or attempts to take down this server or its services will be reported to local law enforcement, and said user will be punished to the full extent of the law. Anyone using this system consents to these terms. Blah Blah Blah Blah...
Or whatever...
2. Open sshd configuration file /etc/sshd/sshd_config using a text editor:
vi /etc/sshd/sshd_config
Add/edit the following line:
Banner /etc/ssh/sshd-banner
3. Save file and restart the sshd server:
/etc/init.d/sshd restart
4. Test your new banner
$ ssh user@host.domain
You should see your banner now.
