Skip to content

Connect from Linux

From Linux you’ll use a VNC client for the macOS desktop and OpenSSH for the terminal — both already available in most distributions.

  • 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.
  1. Install a client, e.g. sudo apt install remmina remmina-plugin-vnc or sudo apt install tigervnc-viewer.
  2. Connect to YOUR-IP:59010 using the VNC protocol.
  3. Authenticate with your username and password.

With TigerVNC from the command line:

Terminal window
vncviewer YOUR-IP:59010
Terminal window
# password
ssh your-username@YOUR-IP
# key
ssh -i ~/.ssh/id_ed25519 your-username@YOUR-IP

Save a shortcut in ~/.ssh/config:

Host mymac
HostName YOUR-IP
User your-username
IdentityFile ~/.ssh/id_ed25519
Terminal window
# copy a file to the Mac
scp ./build.zip your-username@YOUR-IP:~/
# sync a folder
rsync -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.