iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more
Antihost offers Linux VPS plans with full root access, unlimited traffic on a 1 Gbps port and a 14-day free trial.
Mosh is a companion to SSH for interactive terminal sessions that must survive Wi-Fi changes, laptop sleep, roaming between networks, and brief connectivity loss. Install the mosh package on both your computer and the VPS, confirm that ordinary SSH works, allow Mosh’s UDP port range through every firewall, and connect with mosh user@host. SSH still performs authentication and starts the remote helper; the terminal then runs over an encrypted UDP connection.
The most common failure is simple: SSH is allowed, but the UDP port selected by Mosh is blocked by the VPS firewall, cloud security group, NAT, or an intermediate network. The steps below cover installation, non-standard SSH ports, restricted UDP ranges, diagnostics, and the cases where SSH remains the better tool.
PC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minuteWhat you need before installing Mosh
- A local client running a supported package manager and a VPS running a Unix-like operating system.
- The
moshpackage installed on both ends. Installing it only on the VPS is insufficient because the localmoshprogram launches the session. - A working SSH login, including the key, password, user account, and hostname or address you intend to use. Mosh reuses those SSH credentials.
- Permission to change the VPS host firewall and, if applicable, the cloud provider’s firewall or security group.
- A routable address for the VPS. If it is behind NAT, you must be able to forward the selected UDP ports to it.
Test SSH first. For example, run ssh user@vps.example.com and make sure you receive a shell. If SSH authentication or name resolution fails, fix that problem before testing Mosh; Mosh uses SSH to authenticate and start its server helper.
Install Mosh on the VPS and local computer
Ubuntu or Debian VPS
On an Ubuntu or Debian VPS, update the package index and install Mosh:
#1 Best Overall
- Powerful Turbo Fan:CAGIWIRU Electric Air Duster have reached speed up to 130000RPM,Can efficient remove dust and debris.With LED light and Three Adjustable Speed to meet with different cleaning tasks.
- With Attached USB C Fasting Charging cable.Charing 3 hours,Enjoy up to 240 minutes of use on the lowest setting, For third speed can use for 25mins.with four charging options to meet with your needs.
- Wide Application:Upgraded attached 5 different nozzles,making it suitable for a variety of scenes, such as car,pet, pc, keyboards, and other electronic devices. It also serves for office and home clean duster.
- Handy Design & Portable:Cordless air duster electric nozzle is Light weight and small size, design and comfortable to hold and space saving, convenient to carry around. You can put it in your room or inside the car without taking up space.
- Warranty & Support: Our Electric air duster comes with 5 years warranty and 24/7 customer service. During this period, if you have any questions,pls kindly feel free to contact us.
sudo apt-get update
sudo apt-get install mosh
Run the same installation on a local Debian or Ubuntu client if it does not already have Mosh. The package name is also mosh on those systems.
Other client and server platforms
The official Mosh installation instructions provide package-manager commands for Fedora-based systems using dnf, Alpine using apk, Arch-based systems using pacman, macOS through Homebrew or MacPorts, and FreeBSD and OpenBSD. Use the command appropriate to your operating system, then verify that the executable is available with mosh --version or your platform’s package query. The client and VPS should use compatible current Mosh packages.
Free tools Windows power users keep installed
One-click scans. No signup required.
Check the remote helper
Mosh does not install a permanent daemon. When you connect, SSH starts an unprivileged mosh-server process under your remote account. It lives for the connection and exits when that session ends. The helper does not need root privileges. By default, it waits up to 60 seconds for the Mosh client to complete the hand-off after it starts.
Open the UDP ports Mosh actually uses
SSH normally uses a TCP port, but Mosh’s persistent terminal traffic uses UDP. By default, the server chooses one UDP port from 60000 through 61000. Permit that range in every filtering layer that can affect the VPS:
- The VPS operating-system firewall, such as the rules managed by your distribution.
- The cloud provider’s firewall, security group, or network access list.
- A NAT gateway or router, if the VPS has a private address. Forward the chosen UDP range to the VPS, as well as the TCP port used by SSH.
Allowing only the SSH TCP port is not enough. A successful SSH login followed by a message that no UDP data is arriving usually means the Mosh hand-off reached the server but the selected UDP port cannot return traffic to the client.
Use a narrower range when appropriate
You can reduce the exposed range for a small number of concurrent sessions by selecting a range with -p:
Rank #2
- Screen Cleaner is Your Screen’s New Bestfriend! - EVEO is proud to present a screen cleaner that’s perfectly suited for your TV. Meet your new screen cleaner, computer screen cleaner, laptop cleaner, iPad cleaner, Macbook,tv cleaner or any other electronic device. Our screen cleaner spray and wipe along with the included plush microfiber cloth, easily removes dust, fingerprints & other smudges on the screen’s surface. Clean effectively for a streak-free screen
- Gentle on your Screens - Our screen cleaner spray and wipes is compatible to be used even for the most sensitive LCD, LED, CRT, and OLED screens in proper use. Be at ease knowing that this product is compatible with all the major brands: LG, SONY, Samsung, Sharp, iPad, iPhone, Android screens, Kindle, PC monitors - we’ve got you covered! Can be used as LCD screen cleaner, tv cleaner, smart tv screen cleaner, and more
- Premium Super Soft Plush Microfiber Cloth - Included in this efficient screen cleaning kit. This screen cleaner spray and wipe has our signature plush microfiber cloth specially designed to comply with screens and monitors and leave them streak-free. Has been shown to effectively absorbs stubborn stains, zero streaks, and no fiber shedding. Always use this together with our screen cleaner for the best results
- Easy-to-Use Screen Cleaner Kit + microfiber cleaning cloth - The EVEO Screen Cleaning Kit will easily be your new favorite tool when it comes to taking care of the things you love most, quick and easy solution for a streak-free screen. Simply screw on the sprayer gun on the screen cleaner bottle. Spray the cleaning liquid onto the microfiber cloth, then wipe the screen until desired cleanliness & shine is achieved.
- Quality Screen Care Kit Worth Purchasing - Enjoy a convenient Screen Cleaner anytime, anywhere you need it. Your satisfaction is our top priority. We stand behind the quality of our products and that’s why, you shouldn’t be worrying at all. We manufacture the Best Screen Cleaner. and can be used for laptop cleaning kit, laptop screen cleaner, tv screen cleaner for smart tv. MacBook screen cleaner, monitor cleaner or screen cleaner spray for electronic devices with microfiber cleaning cloth
mosh -p 60000:60010 user@vps.example.com
This asks the remote Mosh server to choose a port from 60000 through 60010. The setting controls the server-side Mosh UDP port range; it does not change the SSH port. Your firewall and cloud security group must allow exactly the range you choose. A fixed port can be selected by using the same number at both ends of the range, provided your deployment has a reason to reserve that port.
Firewall planning for multiple users
Each active Mosh session needs a UDP port. A range of 11 ports, such as 60000–60010, can support only a limited number of simultaneous sessions before allocation becomes a problem. The default 1001-port range is simpler for a shared VPS or many users, while a narrow range reduces the number of open ports. Whichever range you select, document it in the host firewall and provider firewall so the two layers do not drift apart.
Make your first Mosh connection
Standard SSH port
After installing Mosh locally and on the VPS and opening UDP access, connect with:
mosh user@vps.example.com
Mosh first invokes SSH to authenticate as user and launch mosh-server. The server reports its chosen UDP port and connection details through that SSH channel. The client then switches the terminal to an encrypted, long-lived UDP datagram connection. Once the switch completes, temporary loss of the original network path can be tolerated better than with a conventional SSH terminal.
The Tool Desk
Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →SSH on a non-standard port
If SSH listens on TCP port 2222 instead of port 22, pass an SSH command explicitly:
mosh --ssh="ssh -p 2222" user@vps.example.com
The quoted value tells Mosh which SSH command to run for authentication and server startup. It does not select a Mosh UDP port. You still need to allow the server’s UDP range separately. You can combine the SSH override with a restricted UDP range when needed:
Rank #3
- 【Large size】:Measuring 800 x 300 mm/ 31. 5×12 inches, which is wider and taller than others. Large mouse pad can perfectly fit your keyboard and mouse of any size, and there is also ample space for peripherals such as phones, tablets, etc.
- 【LED backlight mouse pad】:Blade Hawks RGB mouse pad provides 7 static modes and 7 dynamic modes will give you the options you are looking for. Power-off memory function remembers the last lighting mode you selected. The super glow fiber Chroma will give you a colorful gaming setup that you want.
- 【Anti-slip rubber base】:Made from Natural rubber, this gaming mousepad will firmly grip your desktop, allowing you to enjoy the ultimate precision in the games you are most passionate about. It also comes with a texture that enhances this ability even further.
- 【Smooth and waterproof surface】: Micro-textured cloth surface, for extremely precise mouse control and a smooth movement. When liquid splashes on the gaming mouse pad, it forms water droplets and slides down. Will not delay your work or gameplay.
- 【Plug and play】: This mouse and keyboard pad is powered by USB, plug and play, no driver required. One button control light modes. Press one time to change the lighting mode, press twice to change the brightness, press and hold about 3 seconds turn ON/OFF.
mosh --ssh="ssh -p 2222" -p 60000:60010 user@vps.example.com
When the server binary is not on the remote PATH
If the remote account cannot find mosh-server, specify its absolute path:
mosh --server=/path/to/mosh-server user@vps.example.com
Use the path where your package manager installed the binary, and ensure the account can execute it. This option changes the helper command on the VPS; it does not install the binary for you.
Recommended Free Tools
Multihomed or proxy-based VPS setups
A server with several network interfaces, or a proxy arrangement that changes which address should receive UDP, may require an explicit bind behavior. Mosh provides --bind-server=any or an explicit address. Use these options only when the default bind address is wrong for your topology; binding to an unintended interface can make a session unreachable even though the firewall appears open.
Understand the SSH-to-UDP hand-off
Mosh does not replace SSH authentication. The Mosh client logs in through SSH, and you present the same credentials you use for SSH, such as a password or public key. SSH starts the unprivileged server helper, which chooses a high UDP port and sends the connection information back over SSH.
After that startup exchange, the interactive terminal uses an encrypted UDP datagram protocol designed for responsiveness. Mosh maintains terminal state on both sides, so it can redraw the screen after packets are lost and continue when the client changes IP address. Local echo and line editing remain responsive during high latency or intermittent connectivity, which is why Mosh is useful on mobile links and laptops that sleep or roam between networks.
Do these 3 things before closing this tab:
1Clear out junk files and repair common Windows errors2Fix the driver behind crashes, sound loss and screen glitches3Repair Windows errors before they cause bigger problemsThe server helper is tied to the session rather than being a system service. It waits up to 60 seconds for the client after startup; if the client never completes the UDP connection, the helper exits. A later Mosh command starts a new helper and performs a new hand-off.
Rank #4
- 【Softer and More Comfortable】Vaydeer wrist rest has unique diamond pattern, which is the combination of softness and aesthetics. The materials of wrist rest are improved into higher quality memory foam and covered with silky smooth lycra. The computer wrist rest makes you as comfortable and cushiony as like rest your wrists on clouds.
- 【Ergonomic Wrist Saver】The wrist rests for keyboard and mouse comes with a 17.32×3.15×0.83 inch keyboard wrist pad and a 5.94×3.15×0.83 inch mouse wrist support. Based on ergonomic design, the unique concave shape is the perfect fit for your wrist joints. The wrist rest pad fits most computer keyboards and laptops, improve hand and wrist posture, release your wrist and arm stress.
- 【Non-Slip Rubber Bottom】Featuring an anti-skid silicone base on the bottom, this wrist keyboard support stays firmly in place on your desk, preventing the padding from sliding around, ensuring stable and consistent wrist support during extended computer sessions.
- 【Better Experience & Pain Relief】Our keyboard arm rest is beneficial to alleviate the soreness caused by direct contact and friction between your arm and a hard desk surface, reducing the risk of wrist fatigue or carpal tunnel. The soft texture of memory foam can evenly distribute the pressure around your wrists and provide good support with just enough give.
- 【Helpful in Multiple Scenarios】Whether you're working, studying, writing, typing, gaming, this keyboard and mouse rest combo is an essential accessory to add comfort and support to your hands and wrists. It’s also a great gift for men, women, family, friend, coworker, gamer, teacher, etc.
Troubleshoot “SSH works but Mosh hangs”
1. Identify where the hand-off stops
If SSH authentication succeeds but Mosh cannot connect, the likely sequence is that SSH started mosh-server and the client cannot exchange UDP packets. The Mosh FAQ describes a diagnostic such as “Nothing received from the server on UDP port 60003.” That message means the server started but the client did not receive traffic on the selected UDP port.
2. Check both firewall layers
- Confirm that the VPS host firewall permits inbound and outbound UDP for the configured range.
- Confirm that the cloud firewall or security group permits the same UDP range to the VPS.
- If NAT is involved, verify that the selected range is forwarded to the VPS’s private address and that return traffic is allowed.
- Check that the rule applies to the VPS’s public address and the correct network interface.
Do not test only TCP connectivity to the SSH port; a successful TCP test says nothing about UDP reachability.
3. Confirm the address advertised to the client
A VPS with private and public interfaces, a reverse proxy, or unusual routing can cause the server to advertise an address the client cannot reach. Confirm the VPS’s public address and compare it with the address used by the Mosh client. If the server binds to the wrong interface, try --bind-server=any or provide the required explicit address after validating your routing and firewall rules.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
4. Verify the selected port and range
When you use -p, make sure the exact range is open everywhere. For example, opening only 60000–60005 while running -p 60000:60010 leaves five possible selections blocked. Conversely, opening a narrow range while several sessions are active can exhaust available ports. Temporarily test with the default 60000–61000 range if your security policy allows it, then narrow the range after connectivity is proven.
5. Inspect traffic and listening sockets
For a persistent failure, inspect the server while starting a connection. Tools such as netstat can show UDP sockets; nc (netcat) and socat can help test UDP behavior; and tcpdump can show whether packets arrive at or leave the VPS. Capture on the interface carrying the public address and filter for the selected high UDP port. Packets visible on the VPS but not reaching the client point to an upstream firewall, NAT, or return-path problem. No packets visible on the VPS points to the cloud firewall, routing, or an incorrect address.
6. Check timing and the remote executable
The server waits only 60 seconds for the client after it is launched. A slow or interrupted hand-off can therefore expire even when the package is installed. If the client reports that the helper cannot be found, use --server=/path/to/mosh-server and verify execute permission for the remote account. Make sure the remote locale is UTF-8; Mosh expects UTF-8 settings for reliable character display.
Best Value
- 【No Drill Mounted】Cable management tray can be assembled in as little as 3 minutes or less-simply. Side clips easily clampe the edge of desk, pass through the holes on the sides, and secure excess cables with baskets. Desk cable management supports inward or outward installation to meet your needs in different scenarios, and provides you with great convenience when collecting and organizing wires.
- 【Rubber Pad Protects Desk】Wire organizer under desk built-in soft rubber pads on the clamp protect your desk from scratches, so you will not damage your furniture or office.
- 【Sturdy and Beautiful】Cord management under desk is made of high-quality carbon steel and holds about 15 lbs. The wire basket has 2 holes on each side of the tray to enable your cables to pass freely. Cable baskets are suitable for desk thickness use from 0.4" to 2.4".
- 【Space Saving & Keep Organized】Desk cable management tray holds all your power cords, outlet strips, USB hubs and computer transformers hidden from your feet, and the data cables will not enter the vacuum cleaner to keep your desk clean and tidy. Desk wire organizer is also suitable for use in the kitchen and outdoors.
- 【Reduce Safety Risks】Cable tray under desk keeps all plugs away from your kids, no more worry about tripping. Using 2 holes wire tray saves extra space, helps you easily cabling and wire protection. The mesh design is not easy to accumulate dust, but avoids safety accidents caused by messy wires.
Mosh and SSH: choose the right transport
| Concern | Mosh | Ordinary SSH |
|---|---|---|
| Authentication | Uses SSH credentials and SSH to start the remote helper. | Authenticates directly over the SSH connection. |
| Interactive latency | Designed for immediate response to typing, deleting, and line editing, with local terminal state and UDP transport. | Interactive input follows the live TCP connection and can feel sluggish on a high-latency or lossy path. |
| Sleep, roaming, and IP changes | Designed to tolerate intermittent connectivity and a changing client IP address. | A broken network path generally requires reconnecting or relying on separate session-management software. |
| Firewall requirements | Requires SSH access plus a reachable UDP port, normally selected from 60000–61000. | Requires only the configured SSH TCP port for a terminal session. |
| Port forwarding and sshfs | Does not support SSH port forwarding, X forwarding, or sshfs. | Supports SSH forwarding features and sshfs workflows. |
| Server process | Starts an unprivileged, per-session mosh-server; no permanent daemon is required. |
Uses the SSH server’s normal session process. |
Use Mosh for an interactive shell where resilience and responsive editing matter. Keep ordinary SSH for tunnels, SOCKS or local/remote forwarding, X forwarding, sshfs, file-transfer workflows built around SSH, and automation that depends on SSH’s channel features. It is common to install both and choose per task.
Security and operational considerations
Limit exposure without breaking sessions
Opening UDP 60000–61000 increases the number of reachable ports compared with SSH alone. A narrow range such as 60000–60010 reduces exposure for a small deployment, but it must be large enough for the number of concurrent sessions and must be allowed in every network layer. Restrict source addresses in the cloud firewall when your users connect from predictable networks, while remembering that roaming clients may come from changing addresses.
Keep SSH protections in place
Mosh inherits the SSH login path, so continue using the SSH hardening that protects the VPS: strong keys or passwords, least-privilege accounts, and the intended SSH listening port. Changing SSH from port 22 to another TCP port does not remove the need for Mosh UDP rules; it only changes the command supplied with --ssh and the TCP firewall rule.
Use UTF-8 locales
Set a UTF-8 locale on the client and VPS for reliable display of non-ASCII characters. Incorrect locale settings can look like terminal corruption even when networking is healthy. Correcting the locale is separate from opening ports or changing the SSH command.
Practical command checklist
- Install Mosh on the VPS and local client.
- Run
ssh user@hostand verify a normal shell. - Allow UDP 60000–61000 in the VPS firewall and cloud firewall, or choose and allow a narrower range.
- For NAT, forward the selected UDP range and the SSH TCP port to the VPS.
- Connect with
mosh user@host. - For SSH on port 2222, use
mosh --ssh="ssh -p 2222" user@host. - For a constrained range, use
mosh -p 60000:60010 user@host. - If the helper is outside the remote
PATH, add--server=/path/to/mosh-server. - If a multihomed setup advertises the wrong interface, evaluate
--bind-server=anyor an explicit bind address. - If SSH succeeds but Mosh reports no UDP data, inspect both firewalls, NAT forwarding, the advertised public address, and packet flow with
netstat,nc,socat, ortcpdump.
When Mosh is the wrong tool
Mosh is specifically a resilient interactive-terminal protocol. It does not provide X forwarding, SSH port forwarding, or sshfs. It also does not eliminate the need for SSH credentials or an initial SSH connection. If your job is to carry another protocol through a tunnel, mount a remote filesystem, forward a database port, or run a scripted SSH channel, use ordinary SSH instead. Installing Mosh alongside SSH gives you a choice rather than forcing every workload through one transport.
Quick wins for a faster PC:
Scan for outdated or missing drivers - takes under a minuteDriver Scan →Clear out junk files and repair common Windows errorsFree Scan →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

