You are not logged in.

#1 2020-03-22 18:20:57

AcidGod
Member
Registered: 2019-02-13
Posts: 34

How to setup unlock encrypted ssh-keys on login.

Hi,

I was going through https://wiki.archlinux.org/index.php/SSH_keys#pam_ssh tying to unlock encrypted ssh keys with login password.  I am using lightdm to login into the system particularly lightdm-greeter. But it does not seem to work. This is the config that I have produced /etc/pam.d/lightdm-greeter

#%PAM-1.0

# Load environment from /etc/environment and ~/.pam_environment
auth      required pam_env.so

# Always let the greeter start without authentication
auth      required pam_permit.so
auth      optional pam_ssh.so try_first_pass

# No action required for account management
account   required pam_permit.so

# Can't change password
password  required pam_deny.so

# Setup session
session   required pam_unix.so
session   optional pam_systemd.so
session   optional pam_ssh.so

What am I missing? I stil have to enter password once in order to login using encrypted ssh key.

Offline

Board footer

Powered by FluxBB