Read keyfile locations from ~/.ssh/config
Brought to you by:
rosenauer
Another great feature for pam_ssh would be ability to read keypaths from OpenSSH configfile. The patch moves userinfo fetching earlier, and tries to read (dirty code) all IdentityFile lines from ~/.ssh/config. It adds them to default keyfiles and checks them if no keyfiles are provided via PAM.
As AFAIK OpenSSH keyfile paths aren't relative to ~/.ssh, this patch is meant to be applied after #2816734.
Patch for pam_ssh-1.97