Skip to content

Instantly share code, notes, and snippets.

@hemanth22
Last active October 24, 2025 18:00
Show Gist options
  • Save hemanth22/3de88f4f5cc57c6a357bf3dd646c6b1b to your computer and use it in GitHub Desktop.
Save hemanth22/3de88f4f5cc57c6a357bf3dd646c6b1b to your computer and use it in GitHub Desktop.
ssh

First create a banner

vi /etc/ssh/sshd_banner
    #########################################
    # Welcome to My Rocky Linux 9 Server! #
    # Authorized access only.             #
    #########################################

Add to sshd config

vi /etc/ssh/sshd_config
Banner /etc/ssh/sshd_banner

Restart sshd

systemctl restart sshd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment