[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Disabling access to SSH



On Tue, 2004-11-16 at 08:50 +0100, Mark Maas wrote:
> 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.

Besides the allready mentioned iptables and hosts.allow/deny mechanisms
you can also limit this somewhat in SSH itself:

in /etc/ssh/sshd_config
AllowUsers <valid usernames for ssh>

I myself use a combination of tcpwrappers, iptables and AllowUsers

-- 
Mark Janssen -- maniac(at)maniac.nl
Unix / Linux, Open-Source and Internet Consultant
PGP: 0x357D2178 Skype: markmjanssen ICQ: 129696007

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: