Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssh does not work when Hostname is an ipv6 #5934

Open
martinetd opened this issue Aug 13, 2024 · 1 comment
Open

ssh does not work when Hostname is an ipv6 #5934

martinetd opened this issue Aug 13, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@martinetd
Copy link
Contributor

martinetd commented Aug 13, 2024

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

@martinetd martinetd added the bug Something isn't working label Aug 13, 2024
@ateijelo
Copy link

ateijelo commented Nov 4, 2024

Having the same issue on nightly:

image

wezterm chokes on the ipv6 hostname but ssh works fine.

This worked fine on stable (Feb 3rd, 2024) release.

@ateijelo ateijelo mentioned this issue Nov 6, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants