Re: Disabling access to SSH
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi All,
>
> I'm trying to restrict access to my ssh server from the outside to
> allow only two IP adresses and the internal lan ofcourse.
> And deny access to everyone else.
>
> People are trying the guess a username and password tactic a little
> too much to my liking...
>
> Do I use hosts.deny, hosts.allow for this? If so, which one takes
> precedence?
I think it's better to set up firewall rules with iptables.
Just deny connects to port 22 from anywhere but your lan and hosts.
Reply to: