How to install SSHGaurd on ubuntu 17.04
To install SSHGaurd on Ubuntu 17.04
SSHGaurd is a tool used for countering Brute Force Attack. It monitors the servers from their logging activity. It is so simple to install SSHGaurd on Ubuntu and this tutorial sheds light on it.
Installing SSHGaurd
Before you begin with the installation, make sure you add the needed repositories which you do by running the following command.
root@linuxhelp1:~# add-apt-repository ppa:eugenesan/ppa
This repository contains collection of customized, updated, ported and backported
packages for two last LTS releases and latest pre-LTS release.
Packages for older releases relocated to ppa:eugenesan/archive or deleted.
+-------------------------------------------------------------------------------------+
| Disclaimer:
+-------------------------------------------------------------------------------------+
* Packages in this a nd related PPAs are for personal use only.
They developed specifically for several custom environments and may not work for you.
* Usage of packages in this PPA, in some forms, might contradict licenses of software
packaged in this and related PPAs. End users and administrator are responsible for
runtime licensing and possible legal consequences.
* Some packages provided with their dependencies while some might require additional
Ubuntu repositories and external PPAs. Below is the list of
.
.
.
gpg: keybox ' /tmp/tmp3mbvc_er/pubring.gpg' created
gpg: /tmp/tmp3mbvc_er/trustdb.gpg: trustdb created
gpg: key E61380B28313A596: public key " Launchpad synergy+" imported
gpg: Total number processed: 1
gpg: imported: 1
OK
Once it is done, update the newly added repo as follows.
root@linuxhelp1:~# apt-get update
Hit:1 http://security.ubuntu.com/ubuntu zesty-security InRelease
Get:2 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty InRelease [15.4 kB]
Hit:3 http://in.archive.ubuntu.com/ubuntu zesty InRelease
Hit:4 http://in.archive.ubuntu.com/ubuntu zesty-updates InRelease
Hit:5 http://in.archive.ubuntu.com/ubuntu zesty-backports InRelease
Get:6 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty/main i386 Packages [3,924 B]
Get:7 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty/main amd64 Packages [3,916 B]
Get:8 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty/main Translation-en [3,140 B]
Fetched 26.3 kB in 1s (18.7 kB/s)
Reading package lists... Done
Now is the time to install SSHGaurd package by running the following command.
root@linuxhelp1:~# apt-get install sshguard -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
sshguard
0 upgraded, 1 newly installed, 0 to remove and 117 not upgraded.
Need to get 364 kB of archives.
After this operation, 2,491 kB of additional disk space will be used.
Get:1 http://in.archive.ubuntu.com/ubuntu zesty/universe amd64 sshguard amd64 1.7.1-1 [364 kB]
Fetched 15.2 kB in 0s (22.4 kB/s)
Selecting previously unselected package sshguard.
(Reading database ... 168833 files and directories currently installed.)
Preparing to unpack .../sshguard_1.7.1-1_amd64.deb ...
Unpacking sshguard (1.7.1-1) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (232-21ubuntu2) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up sshguard (1.7.1-1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/sshguard.service &rarr /lib/systemd/system/sshguard.service.
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (232-21ubuntu2) ...
SSHGaurd has been installed. You can use the following command to learn the options available in it.
root@linuxhelp1:~# sshguard --help
sshguard: invalid option -- ' -'
usage: sshguard [-v] [-a thresh] [-b thresh:file]
[-f service:pid-file] [-i pidfile] [-l source] [-p interval]
[-s interval] [-w address | file]
Comments ( 0 )
No comments available