mosh with wireguard
[SOLVED...maybe?] see replies.
Merry Christmas everyone!
I've been experimenting with wireguard and everything seems to be working correctly....everything except mosh. When I try to connect to my VPS that is connected to a mullvad VPN via wireguard I get the following error:
mosh: Nothing received from server on UDP port 60001.
Changing the UDP port doesn't seem to solve the problem. I have port forwarding setup on mullvad so I can ssh into that VPS no problem. Any help would be sincerely appreciated!
BTW, wireguard + mullvad is a great combination.
Edited 27 Dec 2017. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 6 · 100% up
- Kind
- Text
- ID
- 7masde
13 comments
Try
mosh --bind-server=any user@hostPossibly related: https://github.com/mobile-shell/mosh/issues/374
Thanks for the reply, unfortunately your suggestion did not seem to help. But, I think I solved it. In the past I've been running mosh like this:
where
my_vpsis a host in my~/.ssh/configfile. When my VPS is runningwireguardthis did not work and returned the error I mentioned originally. The solution appears to be:where xxx matches the port number in the
~/.ssh/configfileIf you're specifying the SSH port, you should be using
mosh --ssh="ssh -p xxx" your_vps. Usingmosh -p xxx your_vpsis specifying the mosh UDP port instead.Slightly unrelated, but
wireguardplays very nicely withpasspassword manager. Just replace your PrivateKey under [Interface] in your config file with:Really cool, I think :)
How would this work with a user since root is required? Care to expand the archwiki entry maybe :)?
Yes, I can definitely do that. However, I'm not very familiar with the archwiki etiquette. By that I mean, is it appropriate to include entries in the archwiki that are essentially straight out of the man pages? I ask because this command is straight out of the
wg-quickman page :SMy bad, the code in my original post won't work. Here's the correct code:
just replace user with your username