Connect from Linux
Introduction
Section titled “Introduction”From Linux you’ll use a VNC client for the macOS desktop and OpenSSH for the terminal — both already available in most distributions.
How it works
Section titled “How it works”- Desktop: Remmina (VNC plugin) or TigerVNC connecting to port
59010. - Terminal: OpenSSH on port
22, authenticating with your username plus a password or SSH key.
Examples
Section titled “Examples”Desktop with VNC
Section titled “Desktop with VNC”- Install a client, e.g.
sudo apt install remmina remmina-plugin-vncorsudo apt install tigervnc-viewer. - Connect to
YOUR-IP:59010using the VNC protocol. - Authenticate with your username and password.
With TigerVNC from the command line:
vncviewer YOUR-IP:59010Terminal with SSH
Section titled “Terminal with SSH”# passwordssh your-username@YOUR-IP
# keyssh -i ~/.ssh/id_ed25519 your-username@YOUR-IPSave a shortcut in ~/.ssh/config:
Host mymac HostName YOUR-IP User your-username IdentityFile ~/.ssh/id_ed25519File transfer
Section titled “File transfer”# copy a file to the Macscp ./build.zip your-username@YOUR-IP:~/
# sync a folderrsync -avz ./project/ your-username@YOUR-IP:~/project/More in File transfer.
FAQ
Which port is the macOS desktop on?
Port
59010 over VNC (e.g. vncviewer YOUR-IP:59010), not the default 5900 — this reduces brute-force attacks.Do I always need to pass my username?
Yes, for both password and key login:
ssh your-username@YOUR-IP. Omitting it gets you refused because SSH would use your local username.