Configuration[edit]

Your sshd_config should have

UsePAM yes


Troubleshoot[edit]

TGT failed verification[edit]

From /var/log/secure, after attempting to log in, you get:

1 May  6 16:33:59 cs1 sshd[2158]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=localhost  user=leo1
2 May  6 16:33:59 cs1 sshd[2158]: pam_krb5[2158]: TGT failed verification using keytab and key for 'host/cs1.cs.cpsc.ucalgary.ca@CS.CPSC.UCALGARY.CA': Server not found in Kerberos database
3 May  6 16:33:59 cs1 sshd[2158]: pam_krb5[2158]: authentication fails for 'leo1' (leo1@CS.CPSC.UCALGARY.CA): Authentication failure (Success)
4 May  6 16:34:01 cs1 sshd[2158]: Failed password for leo1 from ::1 port 46729 ssh2