GuideMac · From Terminal
Set up Naytto on a Mac from Terminal
For a Mac you set up from Terminal, at the Mac or over SSH, even one with no display. It takes about 15 minutes.
One command installs Naytto. You approve the Mac in a browser, type yes in Terminal, allow two macOS permissions, then connect from any browser.
Before you start
- A Mac with Apple silicon on macOS 15 or later, and an administrator account’s name and password.
- You, signed in at the Mac. With no display, set up automatic login in System Settings › Users & Groups.
- Terminal at the Mac, or SSH with Remote Login on in System Settings › General › Sharing.
- With no display, Screen Sharing on in the same place, switched on by someone at the Mac.
- An email address. Your first sign-in creates a free account.
- Another device with a browser, such as a phone, to connect from.
Automatic login needs FileVault off. Sitting at the Mac? The app guide needs no Terminal.
Install Naytto
01Open a terminal on the Mac
At the Mac, open Terminal from Applications › Utilities. From elsewhere, connect as the person signed in at the Mac:
ssh sam@Sams-Mac-mini.local
02Run the install command
Paste this line and press Return. When it asks for Password:, type the Mac’s password.
curl -fsSL https://naytto.com/install.sh | sh
https://app.naytto.com/device?user_code=YEKFR6BL and approve code YEKF-R6BL. Only approve a code you started yourself.
03Open the address it shows
At the Mac, your browser opens it. Over SSH, open the link on any device. Leave Terminal waiting.
Add it to your account
04Sign in with your email
If asked, type your email address and choose Email me a code. Tick Verify you are human if it appears.
05Enter the code from the email
Type the six-digit code from the email in Sign-in code and choose Sign in.
06Check the code and add the Mac
Check that the code matches Terminal, then choose Add computer. Only approve a code you started.
07Confirm it’s you
If the page asks, choose Add a passkey to confirm and accept both browser prompts.
08Save your recovery codes, the first time
Copy or download the codes, enter code 10, then choose I saved my codes. The page says Computer added.

09Type yes in Terminal
Check that the email address is yours, then type yes and press Return. At the Mac, the window asks too.
sam.rivera@example.com approved adding this Mac. Allow this account to control this Mac? Allow? Type yes, no, or report: yes
Only add your own Mac. If the email isn’t yours, or someone asked you to install Naytto, it’s a scam: type no, or report.
Allow the two permissions
Only someone looking at the Mac’s screen can allow them. At the Mac, follow steps 10 and 11. With no display, follow steps 12 to 20 from a browser.
10Allow them at the Mac
System Settings opens on the Mac. Switch on Naytto in Screen Recording, then in Accessibility. The app guide shows each click.
Added. Sam’s Mac mini is on sam.rivera@example.com and reachable from https://app.naytto.com while Naytto is running. Naytto needs two macOS permissions, once: Screen Recording, to show this screen, and Accessibility, to use its mouse and keyboard.
11Open them again with naytto permissions
Closed System Settings, or pressed Ctrl+C? This opens the settings again and waits.
naytto permissions
12No display? Check that Screen Sharing is on
Finish setup needs Screen Sharing on in System Settings › General › Sharing. If it’s off, plug in a display.
13Run naytto permissions over SSH
Its last paragraph should say to choose Finish setup.
naytto permissions
No display on this Mac? Screen Sharing is on here, so do it from any browser: open https://app.naytto.com and choose Finish setup on Sam’s Mac mini.
14Choose Finish setup
Sign in at app.naytto.com. The Mac shows Setup not finished. Choose Finish setup.
15Sign in to the Mac
Under Sign in to this Mac, enter the Mac’s account name and password, then choose Sign in.
16Open System Settings from the Naytto window
Under Let Naytto show this screen, click Open System Settings.
17Allow Screen Recording
Switch on Naytto, type the Mac’s password, then click Modify Settings.
18Choose Quit & Reopen, then wait
Click Quit & Reopen. The page reads Reconnecting to finish setup, then returns by itself.

19Allow Accessibility
Under Let Naytto control this computer, click Open System Settings, then switch on Naytto.
20Let Naytto take over
The page reads Naytto can now show this Mac, then opens a Naytto session. Answer macOS as in steps 22 and 23.

Connect from your browser
21Choose Connect
On another device, sign in at app.naytto.com. The Mac shows Available. Choose Connect.
22Allow the prompt on the Mac
In the first session, macOS asks whether Naytto may access the screen and audio. Click Allow.
23If macOS asks again, choose Open System Settings
On leftover Screen Recording or Accessibility alerts, click Open System Settings, never Deny.
Don’t press Return on these. On Accessibility Access, Deny is the default button, so Return chooses it.
24Use its desktop
Use the Mac in the tab. Hold Esc to take back your keyboard. The top pill holds Disconnect.

25Test the connection
After disconnecting, select the Mac, choose Test connection, then Start test. It checks everything in seconds.

26Connect from your phone
On a phone or tablet, sign in at app.naytto.com and choose Connect.

Every day
The naytto command does from Terminal, over SSH too, what the Naytto window does at the Mac.
27Check its status
It says whether browsers can reach the Mac, and which version you have.
naytto status
Status Reachable from your browser Keep reachable Off. This Mac sleeps as usual and can't be reached while asleep. Version 0.1.0 (472)
28See every command
It lists each command, such as naytto sign-in-screen on and naytto open-at-login.
naytto help
29Pause remote access
Stop browsers connecting with the first command; let them back with the second. naytto disconnect ends one session.
naytto pause
naytto resume
30Keep the Mac reachable
This keeps it awake, lid closed too. The first time, allow the Naytto helper in System Settings when it opens.
naytto keep-reachable always
Awake while the lid is open. Allow the Naytto helper to keep it reachable with the lid closed.
31Run it again
With the helper allowed, run naytto keep-reachable always once more. off undoes it.
Kept reachable, even with the lid closed. The display still sleeps.
32Remove the Mac from your account
Type y to confirm. Naytto stays installed; naytto add adds the Mac again.
naytto remove
Remove this Mac from its account? Browsers won't be able to reach it until it's added again. [y/N] y
If something goes wrong
SSH asks whether to continue connecting
The first time, type yes, then the Mac’s password. Once you see the Mac’s prompt, everything that follows runs on the Mac.
No one is signed in at the Mac
Naytto runs in the desktop of the person signed in at the Mac’s screen, so the command stops otherwise. Sign in at the Mac once, or set up automatic login, then run naytto add.
With FileVault on, macOS doesn’t offer automatic login, so someone signs in at the Mac after every restart.
The browser didn’t open, or the code ran out
At the Mac, press Return in Terminal to open it. Over SSH, the line under the code says to ⌘-click or Ctrl-click the link.
The code works for 10 minutes. When Terminal says The code expired. Start again., run naytto add.
No sign-in email arrived
Check your spam folder; the subject line starts with the code. It expires in 10 minutes. To get another, choose Use a different email or send a new code.
The page asks me to confirm it’s me differently
You’re asked unless you used your passkey or authenticator app in the last 10 minutes. With a passkey, the button reads Confirm with your passkey. Or choose Sign in again with your authenticator app.
Why does it ask me to save recovery codes?
Naytto asks before your first computer, unless you already saved codes in Account. With a code and an email code, you can get back in if you lose your passkey.
Keep the list private and apart from the computer. Each code works once.
Terminal waits before asking to allow my account
For a new account, Naytto waits a few seconds so you read the warning. Answering in Terminal or the Naytto window is enough.
Permission needed, or Terminal keeps waiting
Run naytto permissions and allow them at the Mac, or turn on Screen Sharing there to use Finish setup. If Screen Recording is on and Terminal still waits, run naytto restart.
Then choose Check again in your computers.
No Finish setup button, or a black screen
Finish setup appears only while Screen Sharing is on, switched on at the Mac in System Settings › General › Sharing. Switched on any other way, it shows a black screen. Naytto never switches it on or off.
If naytto permissions says Plug one in, or Finish setup still isn’t offered, it prints another way: from another Mac, choose Go › Connect to Server in the Finder and enter the address.
Finish setup asks for my Mac password again
The page keeps the account name and password only until you close it, to sign in again while Naytto reopens. If macOS asks for the password in Accessibility, type it and click Modify Settings.
Allowing the keep-reachable helper on a Mac with no display
From another Mac, open the Screen Sharing app, connect to the Mac by its name, such as Sams-Mac-mini.local, and sign in. Then switch on Naytto under App Background Activity.
Updating, or removing it from a browser
Naytto updates itself. To update now, run the install command again; the Mac stays on your account.
To remove the Mac from a browser, choose … next to it in your computers, then Remove from account. Keep reachable pauses until it’s added again.
Asleep, Not responding or Can’t reach
The Mac is asleep, off or offline, or Naytto isn’t open. Naytto can’t wake a sleeping Mac yet. Wake it, check naytto status, then set up naytto keep-reachable.
Remote access paused
Someone paused it on the Mac. Run naytto resume, or choose Resume Remote Access from Naytto’s menu bar icon there.
Still stuck? Get help from a person.