elearn
By:
elearn

DENY_THRESHOLD_ROOT = 1 can't work

February 16, 2015 776 views

I have installed denyhosts ,in the /etc/denyhosts.conf

DENY_THRESHOLD_ROOT = 1

Why can I try to ssh logon into my vps fro three times?

root@debian:/home/debian# ssh root@vps ip
root@vps ip's password:
Permission denied, please try again.
root@vps ip's password:
Permission denied, please try again.
root@vps ip's password:
Permission denied (publickey,password).

Maybe there will be the following in the console.
root@debian:/home/debian# ssh root@vps ip
root@vps ip's password:
Permission denied, please try again.
root@vps ip's password:
Permission denied (publickey,password).

1 comment
  • Did you restart DenyHosts after changing the value? sudo /etc/init.d/denyhosts restart

    In general, I recommend disabling password authentication and only using SSH keys to connect to your servers.

    SSH, or secure shell, is the most common way of administering remote Linux servers. Although the daemon allows password-based authentication, exposing a password-protected account to the network can open up your server to brute-force attacks. In this guide, we demonstrate how to configure your server with SSH keys, which is the recommended authentication method. These are much more difficult for attackers to work around, giving you a more secure login mechanism.
Be the first one to answer this question.