-
Notifications
You must be signed in to change notification settings - Fork 59
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
ssh passphrase never accepted #196
Comments
I tried the same key with the Chrome secure shell app 0.9. In that case I had to import both the private and public keys, and from files rather than copy/paste. But the same key worked there: I typed the passphrase once and then established a connection. |
Strangely enough a newly-generated ed25519 key does work, so that's great. But, at least some kind of error message about why it doesn't like my existing key would be nice. |
I have the same problem with the version installed from chrome web store. RSA or ECDSA key does not work, but ED25519 key is fine. |
Me too: my usual ECDSA key doesn't work, but a new Ed25519 key works. |
Same here, here's the way I generated the key on a mac
Without this issue I never would have gotten this to work. What is really strange is I had this working before a powerwash a few hours ago, and I've never generated a ED25519 key before. Recap: |
I just wasted an embarrassing amount of time chasing down the same problem, with an RSA key I generated directly on my Chromebook.
This is apparently not the correct format. Something about RFC4716 vs. PEM (I am, obviously, not an expert here, but the below fumbling is what got my setup to work) Following the instructions here: https://unix.stackexchange.com/a/529815 I ran
which replaces the key in-place, and my key now starts with
and upon pasting this version of the key into mosh, I am able to unlock my private key with my passphrase. IMO minimally this page: https://github.com/rpwoodbu/mosh-chrome/wiki/Key-based-ssh-Authentication should be updated with this info, and it would be even better if the app could recognize the |
@spencersun's comment from #196 (comment) worked for me. It would be great if some text warning about this was added to https://github.com/rpwoodbu/mosh-chrome/wiki/Key-based-ssh-Authentication. The wiki's not publicly editable, and it looks like there's no way to send PRs for wikis. |
I generated an SSH keypair on my Linux VM, and I want to put the key into Mosh on my Chromebook.
However I'm finding that Mosh never seems to successfully unlock the key: when I type the passphrase correctly it prompts for the passphrase again. If I set the passphrase to empty and re-import the private key, the same thing happens.
I can use the same key to ssh from the Linux VM back in to itself with
ssh -i id_rsa_pixelbook localhost
and that works as expected either with a passphrase or not.The key block I'm pasting in starts with
and I checked I got everything up to and including the
END
line.I've noticed that if I just put garbage in the SSH key import field, I get the same behavior, so maybe it's somehow failing to parse the key I'm adding? Is there any way to get a detailed error message?
The text was updated successfully, but these errors were encountered: