envoy icon indicating copy to clipboard operation
envoy copied to clipboard

pam-envoy: failed to get agent for user

Open whoizit opened this issue 8 years ago • 0 comments

first install envoy. I try use gpg-agent for ssh keys and pam authorization with same login pass

/etc/pam.d/lxdm
#%PAM-1.0
auth        include     system-login
auth      optional    pam_envoy.so
-auth       optional    pam_gnome_keyring.so
account     include     system-login
password    include     system-login
session     include     system-login
session   optional    pam_envoy.so    gpg-agent
-session    optional    pam_gnome_keyring.so auto_start
~/.gnupg/gpg-agent.conf
use-standard-socket
pinentry-program /usr/bin/pinentry
enable-ssh-support
allow-preset-passphrase
journalctl -u lxdm
...
авг 28 03:19:11 atmx-pc systemd[1]: Started LXDE Display Manager.
авг 28 03:19:25 atmx-pc lxdm-session[848]: failed to fetch agent: Connection reset by peer
авг 28 03:19:25 atmx-pc lxdm-session[848]: pam-envoy: failed to get agent for user
авг 28 03:19:25 atmx-pc lxdm-session[848]: pam_unix(lxdm:session): session opened for user atommixz by (uid=0)

$ ps aux | egrep 'env|gpg|ssh'                                                                         
atommixz  1006  0.0  0.0  11152   316 ?        Ss   03:19   0:00 /usr/bin/ssh-agent -s
$ envoy                                                                                                
envoy: failed to fetch agent: Connection refused
$ gpg --version                                                                                        
gpg (GnuPG) 2.1.15
libgcrypt 1.7.3
...
$ envoy --version                                                                                      
envoy v14

ArchLinux distribution. what I do wrong?

whoizit avatar Aug 28 '16 00:08 whoizit