Skip to content

SSH Tunnel Identity File not working #1343

Description

@appfeel

Bug Report

Current Behavior

When trying to create a SSH tunnel with identity file it does not load the key file:

  1. Create connection with connectionString
  2. Select Proxy/SSH
  3. Select SSH with Identity File
  4. Fill the form (also note that labels are not visible by theme colors)
  5. File does not seem to be selected (tried with different keys: rsa, ed25519)
  6. Save & connect
  7. ERROR: When connecting via SSH tunnel either password or identity file is required.
Image

Code/Gist

Also tried to configure the connection via workspace but it does not work:

        "mdb.presetConnections": [
            {
                "name": "db-prod",
                "connectionString": "mongodb://user:pw@localhost:27017/db-prod?authSource=db-prod",
                "sshTunnel": "IDENTITY_FILE",
                "sshTunnelUsername": "user",
                "sshTunnelHostname": "server.com",
                "sshTunnelPort": 22,
                "sshTunnelIdentityFile": ["/Users/user/.ssh/id_ed25519"],
            }
        ]

Expected Behavior/Code

Environment

  • node.js / npm versions: node v22.13.0 / npm 10.9.2
  • OS: OSX 26.6.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions