Closed jiaoruohong closed 4 years ago
After rebootting my PC, restarting sshd and mosh-server, now I can ssh to my WSL. But I still can't mosh to my WSL,
mosh did not make a successful connection to x.x.x.x:6002
Please verify that UDP port 6002 is not firewalled and can reach the server.
(By default, mosh uses a UDP port between 60000 and 61000. The -p option selects a specific UDP port number.
Mosh session finished!
Check if the frps is listening on udp port 6002.
Just an idea, try changing [mosh_ubuntu_pc] remote port from 6002 to 60001, matching the local port.
Before this change, I had same error as jiaoruohong, where mosh timed out after 60s,
mosh --ssh='ssh -p 6001' --server='mosh-server new -p 60001 -l LANG=en_US.UTF-8' -p 6002 foo_user@myserver.xyz
After changing remote port to 60001, I can mosh to my machine.
mosh --ssh='ssh -p 6001' --server='mosh-server new -l LANG=en_US.UTF-8' -p 60001 foo_user@myserver.xyz
My guess is mosh command ignores the server port (60001) whenever there is a -p option (6002).
mosh-server new -p 60001 -l LANG=en_US.UTF-8
) and connect to slave machine with secret key over 6002.nc -4ulv 60001
on slave machine, nc -zvu myserver.xyz 6002
on mosh client machine). So most likely, this is something with mosh, not frp.My setup:
我在 https://v2ex.com/t/395885?p=1#r_15289173 提供了比较完整的 mosh over frp 配置。
What version of frp are you using (./frpc -v or ./frps -v)? frp_0.29.0_windows_amd64
What operating system and processor architecture are you using (
go env
)? Windows 64Configures you used:
Steps to reproduce the issue:
blink> mosh my_ubuntu_pc Socket error: disconnected Did not find remote IP address
blink> ssh my_ubuntu_pc Socket error: disconnected
blink> mosh my_ubuntu_pc Socket error: disconnected Did not find remote IP address