Screens (iOS)
Connect from Screens on iPad or iPhone by using HearthGate for the SSH tunnel and localhost:5900 for the Screen Sharing/VNC endpoint.
Before you connect
This guide assumes HearthGate is already installed on the Mac, Screen Sharing is enabled, and you have exported or transferred the private key for this connection to the iPad or iPhone.
Create or edit a saved screen
In Screens on iPad or iPhone, create a saved screen for the Mac. Give it a recognizable name, then in the General Info area set Address to localhost (if VNC Lockdown is enabled; otherwise, you can also enter the host IP address) and Port to 5900. Make sure Screens' SSH tunnel is enabled and pointed at your Mac's HearthGate SSH host, port, and key. Why VNC Lockdown?
Turn on Secure Connection
Open the Secure Connection settings for that saved screen. Enter the Mac's local network address when connecting locally, or its public WAN IP/DDNS address when connecting from outside the network. Use the HearthGate SSH port, and leave the local-network shortcut off unless you intentionally want Screens to bypass the secure tunnel on trusted local networks.
Select the HearthGate SSH key
Transfer the private key generated in HearthGate to the iPad or iPhone, for example with AirDrop, then choose it in Screens. Screens stores SSH keys in Apple Keychain, and the selected key must match the authorized key that HearthGate installed on the Mac.
Authenticate to macOS Screen Sharing
When Screens asks for credentials, enter the Mac user account allowed to use Screen Sharing. This prompt belongs to the VNC/macOS layer, while the SSH layer is handled by the HearthGate key and port you configured earlier.
Confirm the secured tunnel in Screens
After the session opens, Screens should show an active live SSH tunnel and a secured connection state. That confirms Screens is reaching localhost:5900 through HearthGate rather than exposing the Mac screen port directly.