Working remotely with high performance access to on-premise servers has always been a challenge.
Previously, I used the macOS built-in VPN to connect to my company's TP-Link router's VPN server, mount the company server to my MacBook via NFS, and SSH into the server for development.
This worked, but performance and stability were limited.
Recently, I upgraded my setup to WireGuard + NFS + Mosh.
The improvements have been significant, and I want to share this practical experience with anyone who also needs a fast, stable, and low-latency remote development environment.
Previous Setup
- VPN: macOS built-in VPN (IPSec or L2TP) to company's TP-Link router.
- File Access: NFS mount of server directories to local workstation.
- Remote Shell: SSH session into the server.
Issues:
- VPN connection would sometimes lag or drop.
- Large file transfers (2-3 GB) were slow.
- SSH sessions were sensitive to unstable network, causing delays or disconnects.
New Setup: WireGuard + NFS + Mosh
-
VPN: WireGuard
- Replaced the macOS VPN with WireGuard.
- Simpler configuration, better performance, and faster reconnections.
-
File Access: NFS
- Continued using NFS to mount large codebases from company server to my MacBook.
- File transfer speed significantly improved under WireGuard.
-
Remote Shell: Mosh
- Replaced SSH with Mosh (
mobile shell
) for remote access. - Handles network interruptions gracefully and provides lower latency on high-latency networks.
- Replaced SSH with Mosh (
Performance Comparison
Scenario | Old Setup (VPN + SSH) | New Setup (WireGuard + Mosh) |
---|---|---|
VPN Stability | Average | Very Stable |
File Transfer (2-3GB) | ~5-8 MB/s | ~10-14 MB/s |
SSH/Mosh Session | Noticeable delays | Near real-time typing |
Reconnection After Sleep | Manual reconnect | Auto-reconnect |
Overall Experience | Acceptable | Feels like local work |
Summary
After switching to WireGuard + NFS + Mosh, my remote development workflow has improved dramatically.
Remote work now feels almost indistinguishable from working directly on-site.
If you're struggling with sluggish VPN connections or unreliable SSH sessions, I highly recommend trying this combination.
What About You?
Are you also facing remote work connectivity issues?
Have you tried WireGuard or Mosh?
I’d love to hear your experiences and suggestions in the comments below!