Use Mosh in Remote Desktop Manager through WSL
Mosh is a UDP-based remote shell protocol that utilizes SSH infrastructure for authentication, making it safe to use. It is very useful in scenarios of high latency and bad connectivity, as it will reconnect the session when the connection returns to normal, instead of dropping it.
Steps for installing Mosh
Open PowerShell.
Install WSL2 itself by using the
wsl --installcommand.Install Debian with
wsl --install -d debian.Download all available software update by using
wsl sudo apt update.The WSL image may be outdated and contain outdated software. Input
wsl sudo apt full-upgrade.Install mosh with
wsl sudo apt install mosh.
Once Mosh is installed, it can be used with the usual command and adding wsl in front (e.g., wsl mosh user@server.example.com).
Mosh integration in Remote Desktop Manager 2023 and later
Create a Windows Terminal entry, which is under New entry – Miscellaneous.
Make certain the Display option is set to Embedded (tabbed).
Use the above-mentionned
wsl mosh user@server.example.comcommand in the Run field.Click OK to save and close the window.
Mosh integration in Remote Desktop Manager 2022 and earlier
Though it is recommended to update to the latest Remote Desktop Manager version, this method can be used as a workaround with Remote Desktop Manager 2022.
Create a Command Line (External Application) entry, which is located under New entry – Miscellaneous.
The Display option must be set to Embedded (tabbed).
Input C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.16.10262.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe into the Run field.
Input C:\Windows\system32\wsl.exe -d Debian mosh user@myserver.example.com into the Arguments field. It is recommended to check the paths to make sure they are accurate in the particular environment.
Click OK to save and close the window.
Tips and tricks
WSL2 does not support IPv6, only IPv4, but it is possible to change it back to WSL1 by using the following command: wsl --set-version Debian 1.
Last updated
Was this helpful?