Login make more secure via Pam.d

I try to add extra security for the pam.d login, but setting can’t or don’t work… I know mostly it’s all with the usual file: /etc/pam.d/common-auth & common-account & passwd .
I did : nano /etc/pam.d/system-login
auth optional pam_faildelay.so delay=5000000
save at the bottom of file… but logging via ssh don’t do any change.

Basically i try to add a delay for the login… like type a pswd and wait more before a second try. Having a block could also be nice, but don’t know as i get lock out by adding to :
nano /etc/pam.d/common-auth
auth required pam_tally2.so onerr=fail deny=3

Thanks in advance

If you want a SSH delay I think you’ll have to edit /etc/pam.d/sshd