Connect from macOS
Introduction
Section titled “Introduction”macOS has everything you need built in — no extra software. You’ll use Screen Sharing for the desktop and Terminal for the command line.
How it works
Section titled “How it works”- Desktop: the built-in Screen Sharing app speaks VNC. Connect to your Mac on port
59010(not the default5900). - Terminal: OpenSSH on port
22. You authenticate with a password or an SSH key, and in both cases you must provide your username.
Examples
Section titled “Examples”Desktop with Screen Sharing
Section titled “Desktop with Screen Sharing”- In Finder, choose Go → Connect to Server (
⌘K). - Type
vnc://YOUR-IP:59010and click Connect. - Enter your username and password.
The Screen Sharing app opens your remote desktop. Tips:
- View → Adaptive Quality keeps things responsive on slower links.
- Drag files between your Mac and the remote desktop, and share the clipboard with Edit → Use Shared Clipboard.
Terminal — with a password
Section titled “Terminal — with a password”ssh your-username@YOUR-IPTerminal — with an SSH key
Section titled “Terminal — with an SSH key”ssh -i ~/.ssh/id_ed25519 your-username@YOUR-IPSave a shortcut in ~/.ssh/config so you can just type ssh mymac:
Host mymac HostName YOUR-IP User your-username IdentityFile ~/.ssh/id_ed25519FAQ
What port do I use for Screen Sharing?
Connect to
vnc://YOUR-IP:59010. The desktop runs on port 59010 instead of the default 5900 to reduce brute-force attacks.Do I need the username for key-based login too?
Yes. The username is required for both password and key authentication:
ssh -i ~/.ssh/id_ed25519 your-username@YOUR-IP. Omitting it gets the connection refused.The Mac says "Your screen is being observed" — should I worry?
No. That indicator appears because Screen Sharing is active with a connected session (yours). It is not someone else watching. See support.apple.com/en-us/120315.