Securing SSH

Support for security such as Firewalls and securing linux
Post Reply
Posts: 1
Joined: 2018/08/16 09:46:49

Securing SSH

Post by jusek » 2018/08/16 09:51:23


I want to secure ssh connection to only allowed ip adresses. I have tried with hosts.allow, but it didn't success.
I wrote this:

sshd : : allow
sshd : ALL : deny

This didn't work.

Do you have any other ideas how to secure ssh conection, and if there are any other ways, please help me.

Kind Regards
Jus Kondic

User avatar
Forum Moderator
Posts: 25048
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Securing SSH

Post by TrevorH » 2018/08/16 10:10:09

Use iptables. Possibly combined with an ipset containing a list of the ip addresses or subnets you want to allow access.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply