Securing SSH

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

Securing SSH

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

Hi!

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 : 31.15.204.101 : 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
TrevorH
Site Admin
Posts: 33202
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.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply