-
Notifications
You must be signed in to change notification settings - Fork 665
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
When using kex: 'diffie-hellman-group-exchange-sha256','diffie-hellman-group-exchange-sha1', do not show up in actual server kex list #608
Comments
Group exchange is not supported yet for For example, OpenSSH keeps some pre-computed primes around in a flat file (/etc/ssh/moduli) that it uses when performing group-exchange-based key exchanges (to avoid heavy computation per connection). These primes are typically refreshed at some interval in the background. However, if this file isn't accessible or does not contain any primes, then OpenSSH will use some fixed, static primes compiled into the OpenSSH binary.
|
Ah, that makes alot of sense now. Thanks for kindly explaining the issue. I believe this can be closed, then. |
@mscdex is 'diffie-hellman-group-exchange-sha256' already supported? Do you have any info about this? |
@xMarkusSpringerx The lists of supported algorithms are listed in the readme. |
@mscdex this is weird. I added those keys to my ssh server config.
|
Ah, it's not supported for servers because additional infrastructure (typically outside of node) would be required. |
It's not really feasible without additional infrastructure outside of node and without comprising the security of the algorithm. At this stage it'd be better to support something like curve25519, but node core needs to support it first. |
Thx for this info. I really appreciate it :) Let's see how long it'll take for node to implement it. Sent with GitHawk |
Hi,
For what it's worth, I'm running your library in docker and built off of docker's node 7.6 image.
The issue / question is:
When I put the two kex: 'diffie-hellman-group-exchange-sha256','diffie-hellman-group-exchange-sha1' in the custom kex list, and enable the server's debug: console.log mode, I do not see those two listed in the server's kex list.
Ones that do appear when I put them in the custom kex list:
''diffie-hellman-group1-sha1"
'ecdh-sha2-nistp256','ecdh-sha2-nistp384','ecdh-sha2-nistp521','diffie-hellman-group14-sha1' (the default ones)
Have I made a user error with the 'diffie-hellman-group-exchange-sha256','diffie-hellman-group-exchange-sha1' kex's ? Or is there an issue causing them to not be used / show up in the server's kex list ?
Thanks!
The text was updated successfully, but these errors were encountered: