wezterm
wezterm copied to clipboard
ssh does not work when Hostname is an ipv6
What Operating System(s) are you seeing this problem on?
Linux X11
WezTerm version
20240811-112922-0ac1e948 (built from source just now)
Describe the bug
With a ssh config such as
Host localtest
Hostname ::1
the connection fails with:
Using libssh-rs to connect to user@::1:22
Error: Fatal: failed to set option
⚠️ Process RemoteSshDomain didn't exit cleanly
Exited with code 1.
This message is shown because exit_behavior="CloseOnCleanExit"
I'm not sure if it is relevant or if options are set individually, but the log message does not enclose the ipv6 with brackets e.g. user@[::1]:22 as it probably should.
(I guess that using libssh instead of spawning a ssh process is useful for cross-platform compatibility? so I'll spare you trying to preach just forking a ssh process instead)
Configuration
no config