How to Enable SSH Banner in Ubantu

After login you can have the contents of a “banner” file displayed on the user’s screen.

* Open up the sshd configuration file:

sudo gedit /etc/ssh/sshd_config

* Find:

#Banner /etc/issue.net

* Replace:

Banner /etc/issue.net

* Edit the issue.net file to contain what you want displayed:

sudo gedit /etc/issue.net

* Add what you want:

_
___ _ _ ___ _____ ___| |___
| -_|_’_| .’| | . | | -_|
|___|_,_|__,|_|_|_| _|_|___|
|_|
Welcome to my server

* Restart SSHD:

sudo /etc/init.d/ssh restart

Share
This entry was posted in Linux How to. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>