If I attempt a logon with bad credentials to an sshd
server, I am greeted with Access denied
after about a 2 second pause.
Is there a way to increase the time it takes to return the password entry prompt?
Note that I already have LoginGraceTime
set to a value of 20s
.
This can be controlled with the
pam_faildelay.so
PAM module (man).Under RHEL 6, the following file applies to
sshd
:/etc/pam.d/sshd:
If you don't want to set the
delay
within thepam
module config you can set it in:/etc/login.defs:
Note that, oddly, FAIL_DELAY accepts the time in seconds.
To apply this to console logins, modify
/etc/pam.d/password-auth
and/or/etc/pam.d/system-auth
. Also note, you must include thepam_faildelay.so
line BEFORE any otherauth
lines (particularlypam_unix.so
).