Open allencho1222 opened 10 months ago
Hi, I just ran into the same problem. Luckily there is a workaround.
Setup the host bar
in your ssh config then add the following to wezterm config.
config.unix_domains = {
{
name = "foo",
proxy_command = { "ssh", "-T", "bar", "wezterm", "cli", "proxy" },
},
}
Then you can connect using wezterm connect foo
.
I got this solution from #1568 and #1578. You might want to check them out as well.
@aur3l14no Thank you for your response. I will check them out.
It appears that the solution proposed by @aur3l14no requires the same version of wezterm to be installed on both the client and the server. This is not possible for my use case (the servers are lab machines in my university network and can only be accessed via ssh proxyjump if the client is not connected to the university LAN. Also, I do not have sudo access to those machines so I cannot install wezterm on the remote machines). Therefore I'd still like to kindly request support for ProxyJump
.
same issue with proxycommand
I receive another strange error:
> wezterm connect krypton
mux_client_request_session: session request failed: Session open refused by peer
ControlSocket /home/user/.ssh/sockets/abc12346 already exists, disabling multiplexing
I have a ssh config on the remote host that enabled ControlMaster but why does wezterm want to ssh again?
What Operating System(s) are you seeing this problem on?
macOS
Which Wayland compositor or X11 Window manager(s) are you using?
No response
WezTerm version
20230929-093024-5e0fd1a0
Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?
No, and I'll explain why below
Describe the bug
I have tried to access the server (
target_server
) behind the proxy server (proxy_server
).My ssh config (
~/.ssh/config
) file is:I have tried following commands that successfully access servers:
ssh proxy_server
ssh target_server
ssh -p 20023 -o "ProxyCommand=ssh -W %h:%p proxy_server" root@127.0.0.1
wezterm ssh proxy_server
However,
wezterm ssh
fails to accesstarget_server
:wezterm ssh target_server
wezterm ssh -oProxyCommand="ssh -W %h:%p proxy_server" root@127.0.0.1:20023
To Reproduce
No response
Configuration
Nothing special, but just in case:
Expected Behavior
wezterm ssh target_server
must work.Logs
Here's the log from
wezterm ssh -v target_server
(It seems that"proxycommand"
is not what it has to be):Here's the output from new terminal window popped after
wezterm ssh -v target_server
:Because
"proxycommand"
seems to be wrong, I also show another log fromwezterm ssh -v -oProxyCommand="ssh -W %h:%p proxy_server" root@127.0.0.1:20023
which also fails to accessroot@127.0.0.1:20023
.Anything else?
No response