While using lynis
, I was suggested to add an legal banner.So
What is a legal banner?
How do I add it to /etc/issue and /etc/issue.net?
While using lynis
, I was suggested to add an legal banner.So
What is a legal banner?
How do I add it to /etc/issue and /etc/issue.net?
One of the easiest way to protect and secure SSH logins by displaying warming message to UN-authorized users or display welcome or informational messages to authorized users.
A legal banner contains some security warning information or general information, that alerts the user. It can be used for security, legal info, company policy, etc.
One way to display messages is using issue.net file. issue.net : Display a banner message before the password login prompt.
To display Welcome or Warning message for SSH users before login. Use issue.net file to display a banner massages. Open the following file with the editor.
Add the banner message of your choice, and save the file. Next you would open the master ssh configuration file and enable banners.
Search for the word “Banner” and uncomment out the line and save the file.
It should be like this.
Next, restart the SSH daemon to reflect new changes.
Now try to connect to server you will see banner message you just added.
Source:Tecmint