I've been subjected to a fairly crude dictionary attack:
Apr 8 05:58:38 tooth sshd(pam_unix)[20285]: authentication failure;
logname= uid=0 euid=0 tty=NODEVssh ruser= rhost=202.140.169.246 user=root
Apr 8 05:58:44 tooth sshd(pam_unix)[20289]: authentication failure;
logname= uid=0 euid=0 tty=NODEVssh ruser= rhost=202.140.169.246 user=root
Apr 8 05:58:48 tooth sshd(pam_unix)[20293]: authentication failure;
logname= uid=0 euid=0 tty=NODEVssh ruser= rhost=202.140.169.246 user=root
Apr 8 05:58:52 tooth sshd(pam_unix)[20296]: authentication failure;
logname= uid=0 euid=0 tty=NODEVssh ruser= rhost=202.140.169.246 user=root
But that got me thinking:
Is it possible to set up pam/ssh to require a secondary password when an
attempt is made to log in as root from an unknown location? I don't want
to carry around my 'secret' for ssh; I want to be asked for a second,
different password if pam/ssh sees a login request coming in from an
unvalidated IP... That way, even if the primary password is cracked,
there is a secondary password that would have be cracked as well.
Hopefully, by then, other warnings will kick in.
--
use munged address above to email me
SpamTrap
(E-Mail Removed)