Skip to content

Do not prompt any passphrases before trying all identities from agent. #26

merged 5 commits into from Aug 24, 2011

2 participants


This pull request fixes LH#30.

That bug had following causes. To use IdentitesOnly option, one have to know what IdentityFile corresponds to what identity (i.e. public key) and vice versa. Because of that KeyManager loads all identity files before listing agent identities. But it is impossible to get public key from encrypted private key file without passphrase; so, KeyManager prompted passphrase even before exchange with agent.

Fix: identities load process was separated to two phases. First phase trying to load all identities without prompting passphrase. It runs before listing agent identities. Second phase runs afterwards and loads all remained identities with passphrase prompt.

@delano delano merged commit 613a7e1 into net-ssh:master Aug 24, 2011
delano commented Aug 24, 2011

Thanks for the fix. It's in release 2.2.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.