Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
auth: Fix multiple 'sk' keys configured, fails on first
When a user has configured two or more 'sk' keys, eg Yubikeys, pam-ssh-agent will fail if the first configured key isn't currently plugged in. Standard SSH utilities gracefully try the next key in this situation, so we should too. This is very helpful for users attempting to dogfood their backup key. ;-) We correct this failure by catching the error, and trying the next key IFF the failed key was of the 'sk' type. Signed-off-by: Jason Cooper <[email protected]>
- Loading branch information