Skip to content

Remote SSH IP6: Stays in connection dialog after starting proxy #49009

@friegger

Description

@friegger

Reproduction steps

  1. The SSH connection dialog shows the usual messages for downloading the server etc and than just stays in the dialog after starting proxy
  2. The connection happens via IP6 and a jump host: ssh -A user@2001:db8::2 -J user@[2001:db8::1]

The connection works with VSCode.

Current vs. Expected behavior

Current behavior: SSH Connection stays in connection dialog

Zed version and system specs

Zed: v0.223.3+stable.152.59dfdea1697030fd39de6c92172ff192d013a984 (Zed)
OS: macOS 26.2
Memory: 32 GiB
Architecture: aarch64

Attach Zed log file

Zed.log
# zed logs
2026-02-11T17:02:43+01:00 INFO  [remote::transport::ssh] Remote is windows: false
2026-02-11T17:02:43+01:00 INFO  [remote::transport::ssh] Remote shell discovered: /bin/bash
2026-02-11T17:02:43+01:00 INFO  [remote::transport::ssh] Remote platform discovered: RemotePlatform { os: Linux, arch: X86_64 }
2026-02-11T17:02:44+01:00 INFO  [remote_server] (remote server) starting up with PID 399808:
pid_file: "/home/<user>/.local/share/zed/server_state/setup-7/server.pid", log_file: "/home/<user>/.local/share/zed/logs/server-setup-7.log", stdin_socket: "/home/<user>/.local/share/zed/server_state/setup-7/stdin.sock", stdout_socket: "/home/<user>/.local/share/zed/server_state/setup-7/stdout.sock", stderr_socket: "/home/<user>/.local/share/zed/server_state/setup-7/stderr.sock"
2026-02-11T17:02:44+01:00 INFO  [crashes] (remote server) spawning crash handler process
2026-02-11T17:02:44+01:00 INFO  [remote_server] (remote server) gpui app started, initializing server
2026-02-11T17:02:44+01:00 INFO  [util] (remote server) set environment variables from shell:/bin/bash, path:/home/<user>/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
2026-02-11T17:02:44+01:00 INFO  [remote_server] (remote server) accepting new connections
2026-02-11T17:02:44+01:00 INFO  [remote_server] (remote server) accepted new connections
2026-02-11T17:02:44+01:00 INFO  [recent_projects::remote_servers] ssh server created
2026-02-11T17:02:44+01:00 INFO  [crashes] (remote server) connected to crash handler process after 100ms
2026-02-11T17:02:44+01:00 INFO  [crashes] (remote server) crash handler registered
2026-02-11T17:02:45+01:00 ERROR [remote::remote_client] client:unhandled remote message name:ExternalAgentsUpdated

# server logs
{"level":3,"module_path":"remote_server","file":"crates/remote_server/src/server.rs","line":463,"message":"(remote server) starting up with PID 399808:\npid_file: \"/home/<user>/.local/share/zed/server_state/setup-7/server.pid\", log_file: \"/home/<user>/.local/share/zed/logs/server-setup-7.log\", stdin_socket: \"/home/<user>/.local/share/zed/server_state/setup-7/stdin.sock\", stdout_socket: \"/home/<user>/.local/share/zed/server_state/setup-7/stdout.sock\", stderr_socket: \"/home/<user>/.local/share/zed/server_state/setup-7/stderr.sock\""}
{"level":3,"module_path":"crashes","file":"/home/runner/work/zed/zed/crates/crashes/src/crashes.rs","line":87,"message":"(remote server) spawning crash handler process"}
{"level":3,"module_path":"remote_server","file":"crates/remote_server/src/server.rs","line":520,"message":"(remote server) gpui app started, initializing server"}
{"level":3,"module_path":"util","file":"/home/runner/work/zed/zed/crates/util/src/util.rs","line":389,"message":"(remote server) set environment variables from shell:/bin/bash, path:/home/<user>/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"}
{"level":3,"module_path":"remote_server","file":"crates/remote_server/src/server.rs","line":323,"message":"(remote server) accepting new connections"}
{"level":3,"module_path":"remote_server","file":"crates/remote_server/src/server.rs","line":330,"message":"(remote server) accepted new connections"}
{"level":3,"module_path":"crashes","file":"/home/runner/work/zed/zed/crates/crashes/src/crashes.rs","line":95,"message":"(remote server) connected to crash handler process after 100ms"}
{"level":3,"module_path":"crashes","file":"/home/runner/work/zed/zed/crates/crashes/src/crashes.rs","line":139,"message":"(remote server) crash handler registered"}
{"level":2,"module_path":"remote_server","file":"crates/remote_server/src/server.rs","line":374,"message":"(remote server) error reading message on stdin, dropping connection."}
{"level":3,"module_path":"remote_server","file":"crates/remote_server/src/server.rs","line":323,"message":"(remote server) accepting new connections"}
{"level":2,"module_path":"remote_server","file":"crates/remote_server/src/server.rs","line":334,"message":"(remote server) timed out waiting for new connections after 600s. exiting."}
{"level":3,"module_path":"remote_server","file":"crates/remote_server/src/server.rs","line":309,"message":"(remote server) app quitting. sending signal to server main loop"}
{"level":3,"module_path":"remote_server","file":"crates/remote_server/src/server.rs","line":594,"message":"(remote server) gpui app is shut down. quitting."}

Relevant Zed settings

The failed tries to connect leave these empty blocks in the settings behind.

settings.json
    {
      "host": "2001:db8::2",
      "username": "user",
      "args": [
        "-A",
        "-J",
        "user@[2001:db8::1]"
      ],
      "projects": []
    },
    {
      "host": "2001:db8::2",
      "username": "user",
      "args": [
        "-A",
        "-J",
        "user@[2001:db8::1]"
      ],
      "projects": []
    },
    {
      "host": "2001:db8::2",
      "username": "user",
      "args": [
        "-A",
        "-J",
        "user@[2001:db8::1]"
      ],
      "projects": []
    },

Relevant Keymap

keymap.json

(for AI issues) Model provider details

No response

If you are using WSL on Windows, what flavor of Linux are you using?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:networkNetwork connectivity issues, protocols and services supportfrequency:uncommonBugs that happen for a small subset of users, special configurations, rare circumstances, etcplatform:remoteRemote development, SSH and zed-remote-serverpriority:P2Average run-of-the-mill bugs

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions