Skip to content

How to connect to your Mac

Your rented Mac is a normal Mac with full admin access. You reach it over SSH for the command line and over Screen Sharing for the desktop. This guide goes from the welcome email to a stable daily setup on macOS, Windows and Linux.

Last reviewed

What arrives in the welcome email

When your machine is ready, we send a welcome email with what you need for the first login. The examples use reserved example addresses. Replace them with the values from your email.

  • A fixed public IP address, shown here as 203.0.113.10.
  • Forwarded ports for SSH and for Screen Sharing. The examples use 40010 for SSH and 40020 for Screen Sharing. Use the ports from your email.
  • Your username, shown here as renter.
  • A temporary password. Change it at the first login.

Steps that work on every system

Once you have an SSH client, these steps are the same on macOS, Windows and Linux. The sections for each system below cover what differs.

Create an SSH key

A key pair replaces typing a password. The private key stays on your computer and only the public key goes to the Mac. Press Enter to accept the default location and choose a passphrase when asked.

Terminal
ssh-keygen -t ed25519 -C "my-laptop"

Log in for the first time

Connect with the port and IP from the email. The first time, your client asks whether to trust the host. Check that the address is yours and answer yes. Then enter the temporary password.

Terminal
ssh -p 40010 renter@203.0.113.10

Add your key to the Mac

Run this on your computer. It asks for the temporary password once and installs your public key. After that, you log in with the key. ssh-copy-id is included with macOS and most Linux distributions. On Windows, use the PowerShell variant in the Windows section below.

Terminal (macOS and Linux)
ssh-copy-id -i ~/.ssh/id_ed25519.pub -p 40010 renter@203.0.113.10

Change the temporary password

Right after the first login, set a password of your own on the Mac. The command asks for the current password, then for the new one twice.

passwd changes the account password but not the login keychain, which keeps the temporary password until you update it in Keychain Access or when macOS asks at your next desktop login. If you prefer, change the password in System Settings > Users & Groups during your first Screen Sharing session instead.

On the Mac
passwd

Save the connection in ~/.ssh/config

A Host entry gives the machine a short name, so you can type ssh mac instead of the full command. The same name works for scp, rsync and VS Code.

~/.ssh/config
Host mac
  HostName 203.0.113.10
  Port 40010
  User renter
  IdentityFile ~/.ssh/id_ed25519
  ServerAliveInterval 30

Keep jobs running with tmux

A plain SSH session ends when your laptop sleeps or the network drops, and it takes your running job with it. tmux keeps the session on the Mac. Start one, detach, and attach again later from any computer.

If tmux is not installed, install it once with Homebrew (brew install tmux) after you log in.

On the Mac
tmux new -s work      # start a session named work
# press Ctrl-b, then d, to detach; the job keeps running
tmux attach -t work   # come back to it later
tmux ls               # list sessions

Copy files with scp and rsync

With the Host entry in place, both tools accept the name mac. scp is the quick option for single files. rsync copies only what changed, which saves time on large folders and can resume after an interruption.

Terminal
scp ./report.pdf mac:~/Documents/
rsync -avz --progress ./project/ mac:~/project/
rsync -avz --progress mac:~/results/ ./results/

Work in VS Code with Remote-SSH

Install the Remote - SSH extension in VS Code, open the command palette and choose Remote-SSH: Connect to Host. The mac entry from your config appears in the list. VS Code installs its server component on the Mac and opens the remote folder as if it were local, with the integrated terminal running on the Mac.

Connecting from macOS

macOS includes the OpenSSH client and the Screen Sharing app, so you need no extra software.

Start Screen Sharing

Open Finder, press Command-K and enter the address with the Screen Sharing port from your email. You can also open the Screen Sharing app directly and type the address there. Enter your username and password when asked.

Connect to Server
vnc://203.0.113.10:40020

High Performance or Standard mode

High Performance mode gives a smoother picture and lower latency. It needs an Apple silicon Mac and macOS 14 or later on both sides, and a fast connection. If either side does not qualify, the session runs in Standard mode.

You can see and change the mode in the Screen Sharing app, in the connection settings or the View menu. If the picture lags, Standard mode is the safer choice.

Connecting from Windows

Windows 10 and 11 include an OpenSSH client. Open PowerShell or Windows Terminal. If ssh is missing, add the OpenSSH Client optional feature in Settings.

Add your key to the Mac

Windows has no ssh-copy-id. This PowerShell command appends your public key to the Mac and asks for the temporary password once.

PowerShell
type $env:USERPROFILE\.ssh\id_ed25519.pub | ssh -p 40010 renter@203.0.113.10 "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"

Use a VNC client for the desktop

Apple's Screen Sharing app does not exist on Windows. From Windows the desktop connects over VNC with a client such as TigerVNC Viewer or RealVNC Viewer. Enter the IP and the Screen Sharing port, for example 203.0.113.10:40020, and log in with your Mac username and password.

From Windows, the desktop is plain VNC. There is no High Performance mode, so it is less smooth than Screen Sharing from a Mac, especially at high resolutions. You can do the main work over SSH or VS Code Remote-SSH and open the desktop only for graphical apps.

Where the config file lives

Your SSH config is C:\Users\<you>\.ssh\config. The Host entry from the steps above works unchanged.

Connecting from Linux

Common distributions ship an OpenSSH client, and the commands match the ones on macOS.

Use a VNC client for the desktop

Install Remmina, TigerVNC Viewer or another VNC client from your package manager. Choose the VNC protocol, enter 203.0.113.10:40020 and log in with your Mac username and password.

As on Windows, this is plain VNC without High Performance mode, so it is less smooth than Screen Sharing from a Mac. If the picture lags, lower the colour depth or the resolution in the client.

Optional: Tailscale

Tailscale is a private network between your own devices. You can install it on the rented Mac yourself and on your laptop, and then reach the Mac by its Tailscale name without relying on forwarded ports. It is optional and it is not part of the service: we do not install, manage or support it.

If you use it, you can keep the forwarded ports from the welcome email as a second way in.

How we use our own Mac Studio

This is how we work with the Mac Studio in our Prague office. Your rental comes as a clean macOS install, and you can copy most of this setup.

  • A MacBook Pro connects to the Mac Studio over Tailscale with a direct connection. UDP port 41641 is forwarded at the office, and from home in Prague the latency is about 6 ms. A rental forwards only the SSH and Screen Sharing ports, so Tailscale connects directly when NAT traversal succeeds and otherwise uses a relay.
  • When a direct path is impossible, Tailscale falls back to a relay in Frankfurt. The connection keeps working with higher latency.
  • SSH goes into a persistent tmux session that a LaunchAgent starts on the Mac Studio. Sessions survive disconnects, so a sleeping laptop or a network change does not stop a running job.
  • For the desktop we use Screen Sharing in High Performance mode.
  • When both machines are on the same desk, a Thunderbolt cable bridge between them gives a direct network link.

Troubleshooting

Connection refused

The address answered, but nothing accepted the connection on that port. Check that you used the SSH port from your email and not the default 22, and that you used the Screen Sharing port for vnc and the SSH port for ssh. If both are right, email hello@macrental.eu.

Connection timed out

Packets are not getting through. Some office and hotel networks block outgoing connections on unusual ports. Try another network, such as a phone hotspot, to find out whether your network is the cause.

Permission denied

The username or password is wrong, or the key was not added. Check the username in the email, copy the password carefully, and repeat the key step. ssh -v shows which keys your client offers.

Host key changed warning

Your client remembered a different key for this address. If you know the machine was reinstalled, remove the old entry with ssh-keygen -R "[203.0.113.10]:40010", using your own IP and SSH port, and connect again. If you do not expect a change, stop and email hello@macrental.eu.

The screen is slow or blurry

Use a wired network on your side if you can. Lower the resolution of the remote display or of the client window. Switch from High Performance to Standard mode if the connection is not fast enough. From Windows or Linux, lower the colour depth in the VNC client.