-
-
Notifications
You must be signed in to change notification settings - Fork 794
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
Trips on inline comment in SSH config #5498
Labels
bug
Something isn't working
Comments
hdonnay
added a commit
to hdonnay/wezterm
that referenced
this issue
Jul 3, 2024
Looking at the openssh-portable code, it seems that inline comments are only handled specially on `Match` and `ProxyJump` statements. This change adds inline comment handling. Closes: wez#5498 See-also: https://github.com/openssh/openssh-portable/blob/ee6b9e661633fcefd29dba0c811cecbc4d027f6f/readconf.c#L652 Signed-off-by: Hank Donnay <[email protected]>
I wrote up a patch that seems to match OpenSSH's behavior, which doesn't allow inline comments on all lines. |
If you have a branch with the patch, I'm happy to test it. |
You should be able to get to it from the linked PR. |
I compiled that branch with |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What Operating System(s) are you seeing this problem on?
Linux X11
Which Wayland compositor or X11 Window manager(s) are you using?
xfwm4 4.18.0 on Fedora 40
WezTerm version
20240520-135708-b8f94c47
Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?
Yes, and I updated the version box above to show the version of the nightly that I tried
Describe the bug
Trying to connect to my other machine on the home network by choosing "Shell: New Tab (Domain SSH:machine)" causes this error:
The corresponding config in
~/.ssh/config
is:I think it's failing to parse the
HostName
line. It includes the inline comment as the hostname. When I move the comment to the next line, I can connect.To Reproduce
Try to connect to a host where the corresponding config has an inline comment in the line with
HostName
Configuration
no config
Expected Behavior
I can connect to the remote host.
Logs
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: