Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

old key not working with new agent #15

Open
xaki23 opened this issue Apr 26, 2020 · 2 comments
Open

old key not working with new agent #15

xaki23 opened this issue Apr 26, 2020 · 2 comments

Comments

@xaki23
Copy link
Contributor

xaki23 commented Apr 26, 2020

(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.

@hannesm
Copy link

hannesm commented May 12, 2020

I'm not sure about this issue, the ways forward:

@xaki23
Copy link
Contributor Author

xaki23 commented May 12, 2020

this does not seem to fix the issue.
afaict no change compared to a month ago, and nothing on the vm console.

i am very much in favor of the "show error messages" plan.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants