

Starfighter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2024
07:07 PM
- 2,574 Views
I would like for all users, that login to my system via ssh,
to see the following message before seeing the login
prompt:
'You are on sacred ground!'
What are the steps to configure my Linux system to achieve
this?
Trevor "Red Hat Evangelist" Chandler
1 Solution
Accepted Solutions


Flight Engineer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2024
10:17 PM
- 2,555 Views
I would go in this way:
- Create the ssh banner file (e.g. /etc/ssh/my_ssh_banner)
- Create the customized ssh config file for the ssh configuration into the path /etc/ssh/sshd_config.d/ (e.g. my_custom_banner.conf)
- In the my_custom_banner.conf specify the option "Banner /etc/ssh/my_ssh_banner"
- Reload SSH daemon
- Open a new ssh session, you should find the new banner (:
Best Regards
4 Replies


Flight Engineer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2024
10:17 PM
- 2,556 Views
I would go in this way:
- Create the ssh banner file (e.g. /etc/ssh/my_ssh_banner)
- Create the customized ssh config file for the ssh configuration into the path /etc/ssh/sshd_config.d/ (e.g. my_custom_banner.conf)
- In the my_custom_banner.conf specify the option "Banner /etc/ssh/my_ssh_banner"
- Reload SSH daemon
- Open a new ssh session, you should find the new banner (:
Best Regards


Starfighter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2024
11:25 PM
- 2,438 Views
rhnoname,
Your directions/instructions were short, sweet, and
to the point. Most importantly, they worked!!!
Many thanks for your response!
Trevor "Red Hat Evangelist" Chandler

Community Manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2024
06:52 PM
- 2,468 Views
As an admin go to the server's ssh config file : vim /etc/ssh/sshd_config and do the following addition :
then insert the banner text into the mentioned file path and restart the sshd service.
That's it , you are now king of the ssh banners !
Redhat26

Mission Specialist
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2025
05:58 AM
- 1,215 Views
Redhat
Join the discussion
You must log in to join this conversation.