01-09-2021, 08:27 AM
Creating your own login banner message on linux is possible with just a few steps.
In this example I'm using Fedora server.
First you need to enable showing the banner in your sshd_config file.
Open the sshd_config file with vim :
Scroll down until you find the banner section.
In vim press 'i' to enter insert ( edit ) mode.
Set the full path to the banner message :
Next we'll edit the issue.net file with vim :
Add your login banner text.
Press the esc key and type :wq to save your changes & exit vim.
Check it's working by running the cat command :
More great examples of what you can do to customise the login banner :
https://www.putorius.net/custom-motd-log...linux.html
https://www.cyberciti.biz/faq/howto-chan...n-message/
what is the difference between /etc/issue.net and /etc/issue
https://serverfault.com/questions/922235...-etc-issue
--
Here's how mine looks now when logging in via putty / kitty :
In this example I'm using Fedora server.
First you need to enable showing the banner in your sshd_config file.
Open the sshd_config file with vim :
Quote:sudo vim /etc/ssh/sshd_config
Scroll down until you find the banner section.
In vim press 'i' to enter insert ( edit ) mode.
Set the full path to the banner message :
Quote:Banner /etc/issue.net
Next we'll edit the issue.net file with vim :
Quote:sudo vim /etc/issue.net
Add your login banner text.
Press the esc key and type :wq to save your changes & exit vim.
Check it's working by running the cat command :
Quote: cat /etc/issue.net
More great examples of what you can do to customise the login banner :
https://www.putorius.net/custom-motd-log...linux.html
https://www.cyberciti.biz/faq/howto-chan...n-message/
what is the difference between /etc/issue.net and /etc/issue
https://serverfault.com/questions/922235...-etc-issue
--
Here's how mine looks now when logging in via putty / kitty :
[ Ninja Admins Community Manager ]
