Finding a resident key stored in an agent without a corresponding file?

Lars Noodén lars.nooden at
Fri Apr 9 15:34:04 AEST 2021

On 3/23/21 7:17 AM, Damien Miller wrote:
> On Sun, 21 Mar 2021, Lars Noodén wrote:
>> I have a question about SK keys when there are more than 6 keys in the
>> agent.
> A slightly-terrible workaround might be to download all the keys to the
> agent and delete the "wrong" ones.

Thanks.  Here are two more work-arounds.

One work-around is to use a one-off agent for just the one key.

$ ssh-agent zsh

% ssh-add -K
Enter PIN for authenticator:
Resident identity added: ED25519-SK

% ssh -o IdentitiesOnly=no

Another option, looking at it some more, is to identify the key using
just the public key even if the private key is absent from the file
system.  So that's sort of a another work-around.

$ ssh -i ~/.ssh/


More information about the openssh-unix-dev mailing list