-
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.zipif you don't have install unzip usesudo apt install unzip. - Change in Directory
cd SSH-Banner-Linux-master - Backup your
/etc/update-motd.dDirectory withsudo mv /etc/update-motd.d /etc/update-motd.d-back - Copy the Folder
SSH-Bannerandupdate-motd.din the Directory/etcwithsudo cp -R SSH-Banner-Linux-master/update-motd.d/ /etc/ && sudo cp -R SSH-Banner-Linux-master/SSH-Banner/ /etc/ - Copy the
Bootcountfile inSSH-Banner-Linux-master/init.dto/etc/init.d/withcd SSH-Banner-Linux-master/init.d && sudo cp Bootcount /etc/init.d/ - Copy the
Bootcount.shScript 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.cfgand enable the Variables if you want use. - Edit the
Banner.shfile in/etc/SSH-Banner/and Design your SSH-Banner - If you want to test all Variables copy the files of
/etc/SSH-Banner/Test Functionsin/etc/SSH-Banner/. Note that you have save your Configuration files in/etc/SSH-Banner/ - Test Bootcount Service
sudo /etc/init.d/Bootcount startandsudo /etc/init.d/Bootcount stop - if the Bootcount Script works:
sudo update-rc.d Bootcount defaultsenable 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 :)