Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #262140

pam auth with ssh public key

From jeremy ardley <jeremy.ardley@gmail.com>
Newsgroups linux.debian.user
Subject pam auth with ssh public key
Date 2023-10-04 04:10 +0200
Message-ID <HkZuN-dnLO-3@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


I have set up a server with sshd allowing public key access. I also set 
up google authenticator in pam by putting this line at the head of 
/etc/pam.d/sshd

auth required pam_google_authenticator.so

If I connect to the server without a public key I get the authenticator 
prompt and then password prompt. As expected.

If I connect with a public key I don't get an authenticator or password 
prompt. However, I expected an authenticator prompt but not a password 
prompt

As far as I can tell, sshd does all the public key authentication stuff, 
and there isn't any documented way for pam to check the result of the 
public key other than inspect an environment variable SSH_AUTH_INFO_0

All the docs I've read say pam doesn't do that out of the box.

Has pam been updated at or before Debian 11 ? If so, where can I manage 
its actions?

Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

pam auth with ssh public key jeremy ardley <jeremy.ardley@gmail.com> - 2023-10-04 04:10 +0200
  Re: pam auth with ssh public key Kushal Kumaran <kushal@locationd.net> - 2023-10-04 05:20 +0200
    Re: pam auth with ssh public key jeremy ardley <jeremy.ardley@gmail.com> - 2023-10-04 06:10 +0200

csiph-web