-
Notifications
You must be signed in to change notification settings - Fork 0
Home
HydrexHD edited this page Mar 12, 2018
·
6 revisions
- Install the needed Pakages with
sudo apt install ruby && sudo apt install toilet && sudo apt install acpi
- Login to your Server, change in your User Home or root Directory
- Download the SSH-Banner Script for Linux with
sudo wget https://github.com/HydrexHD/SSH-Banner-Linux/archive/master.zip
. - unzip master.zip with
sudo unzip master.zip
if you don't have install unzip usesudo apt install unzip
. - Change in Directory
cd SSH-Banner-Linux-master
- Backup your
/etc/update-motd.d
Directory withsudo mv /etc/update-motd.d /etc/update-motd.d-back
- Copy the Folder
SSH-Banner
andupdate-motd.d
in the Directory/etc
withsudo cp -R SSH-Banner-Linux-master/update-motd.d/ /etc/ && sudo cp -R SSH-Banner-Linux-master/SSH-Banner/ /etc/
- Copy the
Bootcount
file inSSH-Banner-Linux-master/init.d
to/etc/init.d/
withcd SSH-Banner-Linux-master/init.d && sudo cp Bootcount /etc/init.d/
- Copy the
Bootcount.sh
Script in/usr/local/bin/
withcd SSH-Banner-Linux-master/bin && sudo cp Bootcount.sh /usr/local/bin/
- make the Script's executable with
sudo chmod 755 /etc/init.d/Bootcount && sudo chmod 755 /usr/local/bin/Bootcount.sh && sudo chmod +x /etc/update-motd.d/10-ssh-banner
- Edit the Config file in
/etc/SSH-Banner/ssh-banner.cfg
and enable the Variables if you want use. - Edit the
Banner.sh
file in/etc/SSH-Banner/
and Design your SSH-Banner - If you want to test all Variables copy the files of
/etc/SSH-Banner/Test Functions
in/etc/SSH-Banner/
. Note that you have save your Configuration files in/etc/SSH-Banner/
- Test Bootcount Service
sudo /etc/init.d/Bootcount start
andsudo /etc/init.d/Bootcount stop
- if the Bootcount Script works:
sudo update-rc.d Bootcount defaults
enable it for every System boot - reboot your Server or reboot SSH with
sudo service ssh restart
- Open a new SSH Session to your Server and enjoy :)