-
Notifications
You must be signed in to change notification settings - Fork 712
Description
ssh2 version: 1.10.0
Hi, I'm running into an issue with using a public key after upgrading my NodeJS version from 18.19.0 to 22.18.0. This key works from the command line also with no issues.
I added the debug capability and notice that the only difference is that when running with NodeJS 18.19.0, I see this in the output:
Handshake completed
Outbound: Sending SERVICE_REQUEST (ssh-userauth)
Inbound: Received EXT_INFO
Inbound: Received SERVICE_ACCEPT (ssh-userauth)
where as with NodeJS 22.18.0, the EXT_INFO is missing
Handshake completed
Outbound: Sending SERVICE_REQUEST (ssh-userauth)
Inbound: Received SERVICE_ACCEPT (ssh-userauth)
after which the authentication fails. Both these tests were run against the same server which shows the banner below:
Remote ident: 'SSH-2.0-OpenSSH_8.7'
There is no issue with the username/password based authentication.
I can provide entire logs if needed and also the command line logs (with -vvvv verbose arg) which also outputs SSH2_MSG_EXT_INFO received and works.
Where can I start to do some more digging or logging? I also tried this against the latest version of this package 1.17.0 and see the same behavior with both NodeJS versions. Could it be that the newer NodeJS version might have picked up different versions of this packages dependencies and is causing the issue? Your help is much appreciated!