Logo       PBase-Foundation

SSH fail2ban and port

SSH - fail2ban utility
Install the fail2ban utility:

yum -y install http://pbase-foundation.com/pbase-repo.rpm
yum -y install pbase-preconfig-ssh-fail2ban
yum -y install pbase-firewall-enable
yum -y install pbase-ssh-fail2ban


SSH - Alternate Port Number
Change your SSH access to a non-standard port number:

yum -y install pbase-preconfig-ssh-port
yum -y install pbase-ssh-port

Configuration Options

The pbase-preconfig-ssh-port rpm creates a sample configuration file that can be customized:

{
"pbase_ssh_port" : {
"enableRootLogin": false,
"port": "28800"
}
}