BetaRide Asked: 2012-05-28 04:26:59 +0800 CST2012-05-28 04:26:59 +0800 CST 2012-05-28 04:26:59 +0800 CST sshd block access from some host names 772 I want to block access from some external host to my ssh deamon. Is there something in the sshd_config file I can set? Just if this matters: I'm on a Synology 1010+ with openssh installed from ipgk, if this matters. ssh synology 1 Answers Voted Best Answer timmeyh 2012-05-28T04:55:21+08:002012-05-28T04:55:21+08:00 you can do this by adding the following to your sshd_config DenyUsers username@host for example when you want to ssh acces from the 80.25 ip-range for root: DenyUsers [email protected].* From the manpages: The allow/deny directives are processed in the following order: DenyUsers, AllowUsers, DenyGroups, and finally AllowGroups.
you can do this by adding the following to your sshd_config
DenyUsers username@host
for example when you want to ssh acces from the 80.25 ip-range for root:
From the manpages: