Skip to content

Instantly share code, notes, and snippets.

@eodenyire
Forked from AbdullahGhani1/Linux Banner.md
Created August 29, 2022 23:20
Show Gist options
  • Select an option

  • Save eodenyire/2ae4daad6b83714833f2ac0a76d4c765 to your computer and use it in GitHub Desktop.

Select an option

Save eodenyire/2ae4daad6b83714833f2ac0a76d4c765 to your computer and use it in GitHub Desktop.
LinuxBanner - kodekloud

LinuxBanner - kodekloud

During the monthly compliance meeting, it was pointed out that several servers in the Stratos DC do not have a valid banner. The security team has provided serveral approved templates which should be applied to the servers to maintain compliance. These will be displayed to the user upon a successful login. Update the message of the day on all application and db servers for Nautilus. Make use of the approved template located at /tmp/nautilus_banner on jump host

Click on ✔ and Do Task Again

Solution:

Open 5 Terminal

On Jump Server

sudo scp -r  /root/nautilus_banner tony@stapp01:/home/tony
sudo scp -r  /root/nautilus_banner steve@stapp02:/home/steve 
sudo scp -r  /root/nautilus_banner banner@stapp03:/home/banner

on Nautilus DB Server

ssh peter@stdb01 
sudo yum install openssh-clients -y

on Jump Server

sudo scp -r /root/nautilus_banner peter@stdb01:/home/peter

SSh to each app Server

ssh tony@stapp01
ssh steve@stapp02
ssh banner@stapp03

Type the below code on each app server

sudo mv nautilus_banner /etc/motd

you can ssh on each server to check the output

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