Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

public keys fails with NodeJS 22.18.0 but works with earlier NodeJS versions #1475

Closed
Closed
public keys fails with NodeJS 22.18.0 but works with earlier NodeJS versions#1475

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions