You are not logged in.
Is there a way to set up ssh-agent such that I never have to enter my private key's passphrase when logging in to the local system? I don't like the idea of having to enter two passwords on login. Since I just authenticated myself to the system on login, can't the system somehow forward these credentials to ssh-agent?
I have tried the 'keychain' package, but I am still required to enter my passphrase at least once on a fresh boot.
Also, I would want any solution it to work at the tty login prompt since I don't have anything like Gnome or KDE installed.
Last edited by battlepanic (2011-12-17 16:28:55)
Offline
Steven [ web : git ]
GPG: 327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com
Offline
@op - I do just this under xfce4. What greeter are you using?
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Stebalien,
I just came across pam_ssh as well. This looks like it could be just the sort of thing I had in mind. Unfortunately, the project doesn't appear to be very active, with updates only coming every couple of years. I played around with it and got a working configuration but I've noticed a few limitations so far:
The newer ecdsa (elliptic curve) ssh keys do not appear to be supported. If you are using such a key, pam_ssh won't work, as far as I can tell. There is no mention of this in the pam_ssh man page, so beware.
The ssh-agent spawned by pam_ssh does not persist between user logins. If you like to keep a gnu screen session active between logins you are going to run into problems. The gnu screen environment and those of its children will reference the instance of ssh-agent which exists when gnu screen is invoked but this instance will eventually be killed on logout. When you log back in and reattach to your screen session, you'll notice that it can no longer find ssh-agent. The keychain script avoids this problem by keeping the ssh-agent process alive between logins
Last edited by battlepanic (2011-12-17 17:43:15)
Offline
@op - I do just this under xfce4. What greeter are you using?
I simply enter my username and password via login at the tty. Login belongs to the shadow package.
Offline