Remote Access to a Mac From the Browser: Screen Sharing and SSH for MSPs Without Port Forwarding
Reach client Macs from a browser using built-in macOS Screen Sharing and SSH. No agent on the Mac, no port 5900 forward, works behind CGNAT.
Most MSP remote access stacks were built around Windows. Then a client turns out to have a Mac mini running the office file shares, a design studio full of iMacs, or a managing director who will not give up a MacBook. macOS has no built-in RDP server, and installing a third-party agent on every Mac means another product to license, patch and explain to the client.
You do not need one. Every Mac already ships with a VNC server (Screen Sharing) and an SSH server (Remote Login). The only problem is reaching them from outside the client's network without opening port 5900 to the internet. Here is how to do it from a browser, with nothing installed on the Mac.
What macOS Gives You Out of the Box
Apple documents both services in the Mac User Guide, and both are switched on in the same place: System Settings, General, Sharing (System Preferences, Sharing on older releases).
- Screen Sharing listens on TCP 5900, the standard VNC port, as listed in Apple's own table of ports used by its software. You can limit it to specific accounts with Allow access for: Only these users.
- Remote Login turns on SSH and SFTP. It has the same Allow access for control, so you can restrict it to your admin account.
One thing to know before you start: Apple states that Screen Sharing and Remote Management (the Apple Remote Desktop service) cannot be on at the same time. If the Mac is already managed with Apple Remote Desktop, Remote Management is the service answering on 5900. Check which one is on before you change anything on a client's machine.
Why Port Forwarding 5900 Is the Wrong Answer
The quick fix is a port forward on the client's router to the Mac's port 5900. Do not do it. An exposed VNC port gets found by internet-wide scanners, the Mac's login is then one password away from anyone, and you still have nothing if the site sits behind CGNAT, a 4G router or Starlink, where inbound connections never arrive at all.
The better pattern is the one you would use for any other device on that LAN: an outbound tunnel from the site, and nothing listening on the public internet.
How It Works With ProxyLink
ProxyLink puts one WireGuard tunnel on the client's router or gateway. MikroTik, pfSense, OPNsense, OpenWrt and a Raspberry Pi gateway are all covered in the docs. The tunnel dials out to ProxyLink, so the site needs no static IP and no open ports. Once it is up, every device on the LAN and its VLANs is reachable, including the Macs, without installing anything on them.
For each Mac, you add links in the dashboard:
- VNC on port 5900 for the screen. It opens in a browser tab through the same Guacamole-based viewer ProxyLink uses for RDP.
- SSH on port 22 for a browser terminal, with a Files panel for SFTP transfers.
The LAN scan finds the Macs if you do not know their addresses.
Signing In: Mac Account or VNC Password
macOS Screen Sharing normally asks for a macOS user name and password rather than a bare VNC password. This is Apple's own authentication scheme, and ProxyLink supports it directly: in the VNC connection dialog, choose The VNC server asks for a username (Mac, Raspberry Pi)? and enter the Mac account.
The alternative is Apple's VNC viewers may control screen with password option in the Screen Sharing settings, which accepts a plain VNC password. Apple advises a very secure password if you turn it on. With ProxyLink the port is never exposed to the internet either way, but the Mac account path keeps per-user access control and is the one to prefer.
If you would rather not type credentials every time, you can store the sign-in on the link itself. It is filled in when the session opens, including through an access link, and nothing is changed on the Mac.
Details That Matter on a Client's Mac
- The screen resolution stays put. ProxyLink's viewer does not ask the Mac to resize its display to match your browser window, so the user does not find their monitor at a different resolution after you disconnect.
- Sessions can be recorded. Turn recording on per link and VNC and SSH sessions are kept for review, which helps when a client asks what was changed on their machine.
- Third parties without accounts. A software vendor who needs ten minutes on the Mac gets an access link with an expiry, an optional password and an optional IP allowlist, and no ProxyLink account.
- File transfer is over SSH. The VNC file manager in ProxyLink uses UltraVNC's protocol, which macOS does not speak, so on a Mac use the Files panel on the SSH link instead.
Mixed Fleets, One Workflow
The point of doing it this way is that a Mac stops being a special case. The same client site tunnel that gives you browser RDP to the Windows server, the NVR's web page and the switch's SSH also gives you the Mac's screen. Access is behind a ProxyLink login, and each client site is isolated from your other clients' sites.
Try ProxyLink free at app.proxylink.dev. It is free during early access, with no card required. Gateway setup guides are in the docs. Related: Remote Access Without Port Forwarding.