Hello again,>> Is there anything I can do to debug the issue and provide more information? > > Can you check that your current set is conform to pam_ssh(8) ?
I have not altered the pam configuration myself until now, so the configuration is the one enabled by the package directly. greppng for ssh gives: /etc/pam.d/common-auth:auth optional pam_ssh.so use_first_pass debug /etc/pam.d/common-session:session optional pam_ssh.so debug (the debug lines are what I added as per your suggestion). I also don't have any ~/.ssh/login-keys.d/ or ~/.ssh/session-keys.d/, > If yes, please try the debug option (see pam_ssh(8)) to figure out what is > going wrong; > the log files are welcome. Here's a snippet from /var/log/auth.log, which seems to be the only log with relevant information Jun 23 15:58:34 user pam_ssh[1418]: open session Jun 23 15:58:42 user pam_ssh[1869]: init authentication module Jun 23 15:58:42 user pam_ssh[1869]: No SSH login-keys directory. Jun 23 15:58:42 user pam_ssh[1869]: Grabbing password from preceding auth module. Jun 23 15:58:42 user pam_ssh[1869]: Using previous password for SSH keys. Jun 23 15:58:42 user pam_ssh[1869]: Looking for SSH keys in '/home/user/.ssh/session-keys.d'. Jun 23 15:58:42 user pam_ssh[1869]: No SSH session-keys directory. Jun 23 15:58:42 user pam_ssh[1869]: Looking for SSH keys in '/home/user/.ssh'. Jun 23 15:58:42 user pam_ssh[1869]: SSH key candidate 'id_ed25519'. Jun 23 15:58:42 user pam_ssh[1869]: debug1: key_load_private: No such file or directory Jun 23 15:58:42 user pam_ssh[1869]: SSH key candidate 'id_ed25519' failed. Jun 23 15:58:42 user pam_ssh[1869]: SSH key candidate 'id_ecdsa'. Jun 23 15:58:42 user pam_ssh[1869]: debug1: key_load_private: No such file or directory Jun 23 15:58:42 user pam_ssh[1869]: SSH key candidate 'id_ecdsa' failed. Jun 23 15:58:42 user pam_ssh[1869]: SSH key candidate 'id_dsa'. Jun 23 15:58:42 user pam_ssh[1869]: debug1: key_load_private: No such file or directory Jun 23 15:58:42 user pam_ssh[1869]: SSH key candidate 'id_dsa' failed. Jun 23 15:58:42 user pam_ssh[1869]: SSH key candidate 'id_rsa'. Jun 23 15:58:42 user pam_ssh[1869]: SSH key 'id_rsa' decrypted. Jun 23 15:58:42 user pam_ssh[1869]: SSH key candidate 'identity'. Jun 23 15:58:42 user pam_ssh[1869]: debug1: key_load_private: No such file or directory Jun 23 15:58:42 user pam_ssh[1869]: SSH key candidate 'identity' failed. Jun 23 16:00:47 user pam_ssh[1418]: close session Jun 23 16:00:56 user pam_ssh[2231]: init authentication module Jun 23 16:00:56 user pam_ssh[2231]: No SSH login-keys directory. Jun 23 16:00:56 user pam_ssh[2231]: Grabbing password from preceding auth module. Jun 23 16:00:56 user pam_ssh[2231]: Using previous password for SSH keys. Jun 23 16:00:56 user pam_ssh[2231]: Looking for SSH keys in '/home/user/.ssh/session-keys.d'. Jun 23 16:00:56 user pam_ssh[2231]: No SSH session-keys directory. Jun 23 16:00:56 user pam_ssh[2231]: Looking for SSH keys in '/home/user/.ssh'. Jun 23 16:00:56 user pam_ssh[2231]: SSH key candidate 'id_ed25519'. Jun 23 16:00:56 user pam_ssh[2231]: debug1: key_load_private: No such file or directory Jun 23 16:00:56 user pam_ssh[2231]: SSH key candidate 'id_ed25519' failed. Jun 23 16:00:56 user pam_ssh[2231]: SSH key candidate 'id_ecdsa'. Jun 23 16:00:56 user pam_ssh[2231]: debug1: key_load_private: No such file or directory Jun 23 16:00:56 user pam_ssh[2231]: SSH key candidate 'id_ecdsa' failed. Jun 23 16:00:56 user pam_ssh[2231]: SSH key candidate 'id_dsa'. Jun 23 16:00:56 user pam_ssh[2231]: debug1: key_load_private: No such file or directory Jun 23 16:00:56 user pam_ssh[2231]: SSH key candidate 'id_dsa' failed. Jun 23 16:00:56 user pam_ssh[2231]: SSH key candidate 'id_rsa'. Jun 23 16:00:56 user pam_ssh[2231]: SSH key 'id_rsa' decrypted. Jun 23 16:00:56 user pam_ssh[2231]: SSH key candidate 'identity'. Jun 23 16:00:56 user pam_ssh[2231]: debug1: key_load_private: No such file or directory Jun 23 16:00:56 user pam_ssh[2231]: SSH key candidate 'identity' failed. Jun 23 16:00:56 user pam_ssh[2231]: open session Jun 23 16:01:06 user pam_ssh[2285]: init authentication module Jun 23 16:01:06 user pam_ssh[2285]: No SSH login-keys directory. Jun 23 16:01:06 user pam_ssh[2285]: Grabbing password from preceding auth module. Jun 23 16:01:06 user pam_ssh[2285]: Using previous password for SSH keys. Jun 23 16:01:06 user pam_ssh[2285]: Looking for SSH keys in '/home/user/.ssh/session-keys.d'. Jun 23 16:01:06 user pam_ssh[2285]: No SSH session-keys directory. Jun 23 16:01:06 user pam_ssh[2285]: Looking for SSH keys in '/home/user/.ssh'. Jun 23 16:01:06 user pam_ssh[2285]: SSH key candidate 'id_ed25519'. Jun 23 16:01:06 user pam_ssh[2285]: debug1: key_load_private: No such file or directory Jun 23 16:01:06 user pam_ssh[2285]: SSH key candidate 'id_ed25519' failed. Jun 23 16:01:06 user pam_ssh[2285]: SSH key candidate 'id_ecdsa'. Jun 23 16:01:06 user pam_ssh[2285]: debug1: key_load_private: No such file or directory Jun 23 16:01:06 user pam_ssh[2285]: SSH key candidate 'id_ecdsa' failed. Jun 23 16:01:06 user pam_ssh[2285]: SSH key candidate 'id_dsa'. Jun 23 16:01:06 user pam_ssh[2285]: debug1: key_load_private: No such file or directory Jun 23 16:01:06 user pam_ssh[2285]: SSH key candidate 'id_dsa' failed. Jun 23 16:01:06 user pam_ssh[2285]: SSH key candidate 'id_rsa'. Jun 23 16:01:06 user pam_ssh[2285]: SSH key 'id_rsa' decrypted. Jun 23 16:01:06 user pam_ssh[2285]: SSH key candidate 'identity'. Jun 23 16:01:06 user pam_ssh[2285]: debug1: key_load_private: No such file or directory Jun 23 16:01:06 user pam_ssh[2285]: SSH key candidate 'identity' failed. Jun 23 16:02:01 user pam_ssh[2355]: open session Jun 23 16:02:01 user pam_ssh[2355]: inexistent configuration directory Jun 23 16:08:29 user pam_ssh[2606]: init authentication module Jun 23 16:08:29 user pam_ssh[2606]: No SSH login-keys directory. Jun 23 16:08:29 user pam_ssh[2606]: Grabbing password from preceding auth module. Jun 23 16:08:29 user pam_ssh[2606]: Using previous password for SSH keys. Jun 23 16:08:29 user pam_ssh[2606]: Looking for SSH keys in '/home/user/.ssh/session-keys.d'. Jun 23 16:08:29 user pam_ssh[2606]: No SSH session-keys directory. Jun 23 16:08:29 user pam_ssh[2606]: Looking for SSH keys in '/home/user/.ssh'. Jun 23 16:08:29 user pam_ssh[2606]: SSH key candidate 'id_ed25519'. Jun 23 16:08:29 user pam_ssh[2606]: debug1: key_load_private: No such file or directory Jun 23 16:08:29 user pam_ssh[2606]: SSH key candidate 'id_ed25519' failed. Jun 23 16:08:29 user pam_ssh[2606]: SSH key candidate 'id_ecdsa'. Jun 23 16:08:29 user pam_ssh[2606]: debug1: key_load_private: No such file or directory Jun 23 16:08:29 user pam_ssh[2606]: SSH key candidate 'id_ecdsa' failed. Jun 23 16:08:29 user pam_ssh[2606]: SSH key candidate 'id_dsa'. Jun 23 16:08:29 user pam_ssh[2606]: debug1: key_load_private: No such file or directory Jun 23 16:08:29 user pam_ssh[2606]: SSH key candidate 'id_dsa' failed. Jun 23 16:08:29 user pam_ssh[2606]: SSH key candidate 'id_rsa'. Jun 23 16:08:29 user pam_ssh[2606]: SSH key 'id_rsa' decrypted. Jun 23 16:08:29 user pam_ssh[2606]: SSH key candidate 'identity'. Jun 23 16:08:29 user pam_ssh[2606]: debug1: key_load_private: No such file or directory Jun 23 16:08:29 user pam_ssh[2606]: SSH key candidate 'identity' failed. (that's a few attempts at logging in, checking if the agent was running, logging out, trying again). -- Giuseppe "Oblomov" Bilotta