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
Error "expected 64-byte String, got 3" #442
Comments
Ps. It looks a little like something is missing from the error message. It looks "cut off" at the "3", but that is, in fact, the whole error message. |
I just ran into this in one of my own projects. It seems that a recent change within the last couple of weeks (I haven't yet figured out what or where) requires the use of ED25519 keys instead of RSA keys when deploying via Capistrano (or, more specifically, when using sshkit). That may not be a fair assessment because these libraries seem to use system tools are that system dependent, so it may have been a recent update to the underlying version of my client OpenSSH or something on the server side. But it seems that the Regardless, I fixed this in my project by generating a ED25519 key and adding it to my production server , updating my ~/.ssh/config with the new identity information. For anyone that stumbled here from google, see this blog for a how-to. Good luck, I hope this helps. My client is running OpenSSH 7.8p1. Full stack trace from the error I recieved (it was just executing
|
This is most likely an issue with net-ssh. I see you already opened an issue there (net-ssh/net-ssh#638), so I will close this one. My take is that you have either a corrupt key in I would start removing keys from |
This was not a problem in earlier versions, and this is not a problem with the actual SSH keys, which works fine when doing direct SSH authentication through openssh. So it seems extremely unlikely that my keys are misrepresenting and/or corrupt. I don't disagree that it seems most likely to be a problem with net/ssh. But simply shuffling the responsibility back onto "it must be your keys" in order to close the issue seems cheap. |
Ouch! I was trying to offer some help and I think you're overreacting a bit here. Before I wrote my comment I spent time digging into the net-ssh source code to troubleshoot your issue and came up with what I thought was the best course of action. When I said, "net-ssh is misinterpreting one of [your] keys". That does not mean it is your "fault". It means that net-ssh likely has a bug in its key-loading algorithm. It sounds like we're in agreement that this is more likely a net-ssh bug, than an sshkit one. As a general rule we close issues that are due to upstream bugs (a policy that I think is fairly common in open source projects), hence my decision to close this one. My apologies if that came off the wrong way. |
Sorry if that came off as blunt! I don't know how much or little you debugged prior to closing. But neither did it seem that you're particularly interested in fixing the problem. That may be my misinterpretation. Let's hope a solution is found within the net/ssh library. |
Upgrading |
|
Upgrade |
I was facing this issue with net-ssh 4.0.1, updated it to 6.1.0 and it worked. Thanks @mszyndel! |
I'm getting the following error:
I have recently begun upgrading my ssh keys to the new ECDSA, and this is the server where it fails.
The initial error message was that I needed to add the
ed25519
andbcrypt_pbkdf
gems, which I did.But this error message is less helpful.
I have tried manually connecting to the server with SSH which works fine.
Here's the Capistrano log:
Here's the simplest replication code that I could come up with:
And here's the backtrace:
Thanks in advance
The text was updated successfully, but these errors were encountered: