cancel
Showing results for 
Search instead for 
Did you mean: 
Trevor
Starfighter Starfighter
Starfighter
  • 947 Views

Banner for SSH Login

Jump to solution

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
rhnoname
Flight Engineer Flight Engineer
Flight Engineer
  • 928 Views

I would go in this way:

  1. Create the ssh banner file (e.g. /etc/ssh/my_ssh_banner)
  2. Create the customized ssh config file for the ssh configuration into the path /etc/ssh/sshd_config.d/ (e.g. my_custom_banner.conf)
  3. In the my_custom_banner.conf specify the option "Banner /etc/ssh/my_ssh_banner"
  4. Reload SSH daemon
  5. Open a new ssh session, you should find the new banner (:
Best Regards

View solution in original post

3 Replies
rhnoname
Flight Engineer Flight Engineer
Flight Engineer
  • 929 Views

I would go in this way:

  1. Create the ssh banner file (e.g. /etc/ssh/my_ssh_banner)
  2. Create the customized ssh config file for the ssh configuration into the path /etc/ssh/sshd_config.d/ (e.g. my_custom_banner.conf)
  3. In the my_custom_banner.conf specify the option "Banner /etc/ssh/my_ssh_banner"
  4. Reload SSH daemon
  5. Open a new ssh session, you should find the new banner (:
Best Regards
Trevor
Starfighter Starfighter
Starfighter
  • 811 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
Chetan_Tiwary_
Community Manager
Community Manager
  • 841 Views

As an admin go to the server's ssh config file : vim /etc/ssh/sshd_config and do the following addition :

Chetan_Tiwary__0-1729791725131.png

then insert the banner text into the mentioned file path and restart the sshd service.

Chetan_Tiwary__1-1729791914441.png

That's it , you are now king of the ssh banners !

Join the discussion
You must log in to join this conversation.