1829035 Members
2428 Online
109986 Solutions
New Discussion

OpenSSH

 
Ray Bell
Regular Advisor

OpenSSH

I'm trying to configure ssh to not allow certain i.p. address with a particular subnet to connect to my main server. I know that the file /opt/ssh/ssdh_config need to be update. I don't know the correct syntax:
DenyHosts "@XXX.XX.XX.XX"

Can someone assist me with the correct syntax so I can get this working.
3 REPLIES 3
Christopher McCray_1
Honored Contributor

Re: OpenSSH

Hello,

Try this

DenyHosts xxx.xx.xx.*, xxx.xx.xx.*


Be sure to bounce the sshd daemon afterward

Hope this helps
Chris


It wasn't me!!!!
Craig Rants
Honored Contributor

Re: OpenSSH

From the O'Reily SSH book

DenyHosts example.com

hostname or ip address is allowed.

GL,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Ray Bell
Regular Advisor

Re: OpenSSH

It gave me a configuration error when I try to start the ssh up again. I type in what you specified..
DenyHosts xxx.xx.xx.*

I'm going to try just the one i.p. addres now and will add the rest later. But the syntax is still giving me an error.