Difference between revisions of "Talk:Denyhosts"
From SME Server
Jump to navigationJump to searchLine 3: | Line 3: | ||
when you edit the /etc/hosts.deny_ssh | when you edit the /etc/hosts.deny_ssh | ||
− | you | + | you should delete both the IP and commend line |
otherwise it will not work | otherwise it will not work | ||
− | for example you find this | + | for example you want to let 192.168.3.3 to have access and you find this |
# DenyHosts: Thu Feb 14 19:03:30 2013 | 192.168.1.1 | # DenyHosts: Thu Feb 14 19:03:30 2013 | 192.168.1.1 | ||
Line 17: | Line 17: | ||
192.168.n.n | 192.168.n.n | ||
− | + | if you delete only the IP (not the comment also) the block ban will not be raised for IP 192.168.3.3 after the restart of the service | |
− | |||
− | if you delete only the IP (not the comment also) | ||
like this | like this | ||
Line 31: | Line 29: | ||
192.168.n.n | 192.168.n.n | ||
− | + | or if you change to another IP it seems to don't work | |
− | + | like this | |
− | |||
# DenyHosts: Thu Feb 14 19:03:30 2013 | 192.168.1.1 | # DenyHosts: Thu Feb 14 19:03:30 2013 | 192.168.1.1 | ||
Line 45: | Line 42: | ||
192.168.n.n | 192.168.n.n | ||
− | + | you should delete both lines (IP + comment) | |
− | + | like this | |
# DenyHosts: Thu Feb 14 19:03:30 2013 | 192.168.1.1 | # DenyHosts: Thu Feb 14 19:03:30 2013 | 192.168.1.1 | ||
Line 57: | Line 54: | ||
and restart the service | and restart the service | ||
− | + | ||
+ | |||
this should be in editing the /etc/hosts.deny_ssh section | this should be in editing the /etc/hosts.deny_ssh section |
Revision as of 15:42, 15 February 2013
Editing configuration
when you edit the /etc/hosts.deny_ssh
you should delete both the IP and commend line otherwise it will not work
for example you want to let 192.168.3.3 to have access and you find this
# DenyHosts: Thu Feb 14 19:03:30 2013 | 192.168.1.1 192.168.1.1 # DenyHosts: Thu Feb 14 22:36:00 2013 | 192.168.2.2 192.168.2.2 # DenyHosts: Fri Feb 15 08:44:09 2013 | 192.168.3.3 192.168.3.3 # DenyHosts: Fri Feb 15 10:44:39 2013 | 192.168.n.n 192.168.n.n
if you delete only the IP (not the comment also) the block ban will not be raised for IP 192.168.3.3 after the restart of the service
like this
# DenyHosts: Thu Feb 14 19:03:30 2013 | 192.168.1.1 192.168.1.1 # DenyHosts: Thu Feb 14 22:36:00 2013 | 192.168.2.2 192.168.2.2 # DenyHosts: Fri Feb 15 08:44:09 2013 | 192.168.3.3 # DenyHosts: Fri Feb 15 10:44:39 2013 | 192.168.n.n 192.168.n.n
or if you change to another IP it seems to don't work
like this
# DenyHosts: Thu Feb 14 19:03:30 2013 | 192.168.1.1 192.168.1.1 # DenyHosts: Thu Feb 14 22:36:00 2013 | 192.168.2.2 192.168.2.2 # DenyHosts: Fri Feb 15 08:44:09 2013 | 192.168.3.3 192.168.a.a # DenyHosts: Fri Feb 15 10:44:39 2013 | 192.168.n.n 192.168.n.n
you should delete both lines (IP + comment)
like this
# DenyHosts: Thu Feb 14 19:03:30 2013 | 192.168.1.1 192.168.1.1 # DenyHosts: Thu Feb 14 22:36:00 2013 | 192.168.2.2 192.168.2.2 # DenyHosts: Fri Feb 15 10:44:39 2013 | 192.168.n.n 192.168.n.n
and restart the service
this should be in editing the /etc/hosts.deny_ssh section --Larieu (talk) 03:24, 15 February 2013 (MST)
when your work will be terminated you should add it to the front page Stephdl (talk) 03:42, 15 February 2013 (MST)