Selected from Linux Selected from PHP
- Ubuntu 17.10 Install google's mod pagespeed for apache - PHP-Ubuntu-Youtube-dl simple script for converting and downloading youtube video or mp3
- Ubuntu SSH tunnel via proxy - PHP while loop with every row with a different color
- Install GoAccess Apache Log Analyzer Tool on Ubuntu 17.10 - PHP use while loop in function
- SSHFS and map folder with a proxy - PHP List Files And Folders As links
- How to connect to SSH server with a proxy - PHP Extract Text From String
➥ Ssh display a banner page when logging
Added by sonik on 03-01-2018 and keywords: ssh, sshd, banner, display, on, login [ Print Article ]
Display a Banner

If you want to try to scare novice attackers, it can be funny to display a banner containing legalese. This doesn't add any security, because anyone that's managed to break in won't care about a "no trespassing" sign--but it might give a bad guy a chuckle.

To add a banner that will be displayed before authentication, find this line:

#Banner /etc/issue.net


and replace it with:

Banner /etc/issue.net


This will display the contents of the /etc/issue.net file, which you should edit to your taste. If you want to display the same banner to SSH users as to users logging in on a local console, replace the line with:

Banner /etc/issue

To edit the banner itself try

pico /etc/issue.net


Then one restart
service sshd restart


This is what is going to happen when you try to connect to the server via ssh.

# ssh root@yourserver.com

------------------------------------------------
| PRODUCTION ENVIRONMENT 6.123 |
------------------------------------------------
|-WEBLEIT.INFO SERVER |
|-TEST |
|-TEST |
------------------------------------------------
| ALL ACTIONS ARE LOGGED AND MONITORED |
------------------------------------------------
root@yourserver's password:

@All rights reserved with Copyright Webleit.info 2018 by Sonik_Blast [ Site Map ] [ RSS ] [ YouTube Mp3 Downloader and converter ]