Skip to main content

IT - SSH: Banner page

  • macOS
    1. Enable the Banner option. Edit file /etc/ssh/sshd_config and enabled the Banner option. For that you need to remove the comment character (#) from the line and include a filename after the option. It should be like Banner /etc/ssh/motd.
    2. Create a banner file. It should be the same file as indicated by the Banner option above.
    3. Set file permissions
    4. Restart the SSH service

      $ sudo vi /etc/ssh/sshd_config
      $ sudo vi /etc/ssh/motd
      $ sudo chmod a=r,u+w /etc/ssh/motd
      $ sudo sudo launchctl stop com.openssh.sshd
      $ sudo sudo launchctl start com.openssh.sshd
  • Fedora 36 / 37 / 38 / 39
    1. Enable the Banner option. Edit file /etc/ssh/sshd_config and enabled the Banner option. For that you need to remove the comment character (#) from the line and include a filename after the option. It should be like Banner /etc/ssh/motd.
    2. Create a banner file. It should be the same file as indicated by the Banner option above.
    3. Set file permissions
    4. Restart the SSH service

      $ sudo vi /etc/ssh/sshd_config
      $ sudo vi /etc/ssh/motd
      $ sudo chmod a=r,u+w /etc/ssh/motd
      $ sudo systemctl restart sshd

Comments

Popular posts from this blog

TV Series - The Brokenwood Mysteries [NZ] (2014) - Season 10

 

Movie - Sin City: A Dame to Kill For (2014)

 

Movies - Deadpool & Wolverine (2024)