Skip to content

old key not working with new agent #15

@xaki23

Description

@xaki23

(not a new issue, we talked about this on irc a month ago, but it is still open and i would like to track it here, perhaps we find someone with the same issue)

since the change to mirage-crypto, my old main rsa key is no longer working.
ssh-add simply fails:

[user@work-ssh ~]$ ssh-add -l
The agent has no identities.
[user@work-ssh ~]$ ssh-add
Enter passphrase for /home/user/.ssh/id_rsa: 
Could not add identity "/home/user/.ssh/id_rsa": communication with agent failed
[user@work-ssh ~]$ ssh-add -l
The agent has no identities.
[user@work-ssh ~]$ 

there is nothing useful in the console log of the agent vm.
strace-ing ssh-add says the agent is simply closing the connection.
there doesnt seem to be anything wrong with the setup as such, the same key works fine with the same setup but a pre-mirage-crypto build of the agent.
a freshly generated rsa key of the same size loads, generating some thousand new keys and loading them didnt find any other key that didnt work.

@hannesm suggested it might be mirage-crypto doing some "checks" on the key material while loading it.

sadly this is the one key i can not simply replace, so no way to hand it over for testing.
so i would need a way to do a "debug build" with either a lot less catch-and-ignore or a standalone test client.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions