-
Notifications
You must be signed in to change notification settings - Fork 27
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
ssh2 keys not recognised #468
Comments
Workaround A tectia/ssh2 private key can be converted to openssh/ssh1 format with:
This can then be imported in the usual way. Public keys can be converted with the same command for use at the server (depending which format is required there by the ssh daemon; that is independent of Brooklyn). |
It still might be nice to support ssh2 natively. This isn't available in If you're interested in having this please comment describing use case and saying which route you'd prefer. |
Looking at it a bit more, I think implementing a Hit a very similar issue again today in another company, using Tectia, trying to connect in to Github. Github client by default assumes OpenSSH private keys; and if you've saved it in SSH2 format it comes back as "auth denied". PuttyGen btw will create private keys which appear to be in the same format as Tectia; that may help with experimenting. |
I assume the format is the http://tools.ietf.org/html/rfc4716 one, like this:
In that case, I'm in favour of adding support to sshj, if possible. I will create an issue on their repo and have a look at what would be involved. |
the keys I've encountered are slightly different:
pretty sure you can generate these with PuttyGen. not sure if this is the same or different to the spec you've seen. |
question: is ssh2 transport support different to ssh2 keys? would it be the case that some users might want to support ssh2 only, not openssh? in which case the ganymed route is more useful than mere key support for ssh2 in sshj. (though both might be useful.) if doing key support, i think this could be done in brooklyn while waiting on sshj to accept it. autodetecting key type is a very useful thing. i will investigate. appreciate any feedback. |
So, as I understand it, sshj supports SSH2 (https://github.com/shikhar/sshj) as well. The problem is that RFC4716 only defines the public key file format. Vendors are free to define their own private key formats. Therefore, we would be justified in adding a key format detector and translator (within certain limits) to Brooklyn, and probably also sshj. This means I don't see any need for Ganymed. |
Good plan. |
tectia is supported via an alternate CLI-based mechanism, in PR #478 . that fixes two related issues #476 and #477 which would probably bite us even if we fixed this. so closing this as won't fix. can re-open (or open new issue at apache) if there is a need. also note hierynomus/sshj#54 . |
Tectia ssh keys aren't recognised by Brooklyn. The ssh process fails to connect to remote machines, and the following appears in the log:
Tectia and other ssh2 format keys are commonly used in large organisations so it would be good to support these.
The text was updated successfully, but these errors were encountered: