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

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.
Terminal after the install command: Downloading Naytto.zip, Installed Naytto in Applications, Open at login: On, then the approval link, the code YEKF-R6BL and Waiting for approval.

03Open the address it shows

At the Mac, your browser opens it. Over SSH, open the link on any device. Leave Terminal waiting.

Safari on the Mac at app.naytto.com showing Sign in or create an account, with macOS’s Login Item Added notification saying “Naytto” will open automatically when you log in.
The Naytto window reading Waiting for approval, with Approve in your browser, the code YEKF-R6BL, Open browser again and Cancel.

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.

The Sign in or create an account page on app.naytto.com, with an empty Email field and the button reading Checking this browser…, above Sign in with a passkey.

05Enter the code from the email

Type the six-digit code from the email in Sign-in code and choose Sign in.

The Enter your code page for sam.rivera@example.com, with a six-digit code typed into Sign-in code above the Sign in button.

06Check the code and add the Mac

Check that the code matches Terminal, then choose Add computer. Only approve a code you started.

The Add this computer? page naming Sam’s Mac mini, a Mac, with the code YEKF-R6BL and the Add computer and Don’t add buttons.

07Confirm it’s you

If the page asks, choose Add a passkey to confirm and accept both browser prompts.

The Add this computer? page with a red notice, Confirm it’s you first, and the button now reading Confirm with your passkey.

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.

The Computer added page saying Sam’s Mac mini is on your account now, with a Go to your computers button.

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
Terminal saying sam.rivera@example.com approved adding this Mac, asking Allow this account to control this Mac? with a scam warning, and Allow? Type yes, no, or report: answered yes.
The Naytto window in front of Terminal asking Allow this account to control this Mac? for sam.rivera@example.com, with a scam warning and the Don't allow and Allow buttons.

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.
Terminal after yes: Added. Sam’s Mac mini is on sam.rivera@example.com and reachable from https://app.naytto.com while Naytto is running, then the two permissions explained and Waiting for Screen Recording and Accessibility…
System Settings open in front of Terminal at Screen & System Audio Recording, with Naytto listed and its switch off.

11Open them again with naytto permissions

Closed System Settings, or pressed Ctrl+C? This opens the settings again and waits.

naytto permissions

Terminal after naytto permissions, explaining the two macOS permissions and waiting for Screen Recording and Accessibility, with a hint to run naytto restart.

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.

System Settings at General › Sharing, with Screen Sharing switched on and File Sharing, Media Sharing and Content Caching off.

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.

Your computers listing Sam’s Mac mini as Setup not finished with a Finish setup button, and a side panel saying Naytto on that Mac still needs Screen Recording and Accessibility and its Screen Sharing is on.

15Sign in to the Mac

Under Sign in to this Mac, enter the Mac’s account name and password, then choose Sign in.

The amber Finish setting up Sam’s Mac mini bar above a Sign in to this Mac card, with sam in Account name, a hidden password and the Sign in button.

16Open System Settings from the Naytto window

Under Let Naytto show this screen, click Open System Settings.

The Mac’s desktop inside the browser under the amber Finish setup bar, with the Naytto window for Sam’s Mac mini and an Open System Settings button under Let Naytto show this screen.

17Allow Screen Recording

Switch on Naytto, type the Mac’s password, then click Modify Settings.

Through the browser, System Settings on the Mac at Screen & System Audio Recording, with Naytto listed and its switch off.
A macOS password prompt seen through the browser: Privacy & Security is trying to modify your system settings, with Sam Rivera, a Password field and Modify Settings.

18Choose Quit & Reopen, then wait

Click Quit & Reopen. The page reads Reconnecting to finish setup, then returns by itself.

A macOS alert seen through the browser saying “Naytto” may not be able to record the contents of your screen until it is quit, with Quit & Reopen and Later.
The page for Sam’s Mac mini reading Trying again in 1 s and Reconnecting to finish setup, with Try now, Back to your computers and Attempt 1 of 12.

19Allow Accessibility

Under Let Naytto control this computer, click Open System Settings, then switch on Naytto.

The reopened Naytto window seen through the browser, with a green check beside Let Naytto show this screen and an Open System Settings button under Let Naytto control this computer.
Through the browser, System Settings at Accessibility, Allow the applications below to control your computer, with Naytto listed and its switch off.

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.

The page for Sam’s Mac mini reading Finishing setup… and Naytto can now show this Mac. Opening its screen…, above the steps Signing in, Reaching your computer, Opening a private connection and Waiting for your screen.

Connect from your browser

21Choose Connect

On another device, sign in at app.naytto.com. The Mac shows Available. Choose Connect.

Your computers on app.naytto.com listing Sam’s Mac mini, Mac, added Sep 29, Available, with a Connect button in its row and the selected Mac’s panel with Connect and Test connection.

22Allow the prompt on the Mac

In the first session, macOS asks whether Naytto may access the screen and audio. Click Allow.

In a session, a macOS prompt on the Mac saying “Naytto” is requesting to bypass the system private window picker and directly access your screen and audio, with Allow and Open System Settings.

23If macOS asks again, choose Open System Settings

On leftover Screen Recording or Accessibility alerts, click Open System Settings, never Deny.

In a session, a macOS Screen Recording alert saying “Naytto” would like to record this computer’s screen and audio, with Open System Settings and Deny, above the Naytto window.
In a session, a macOS Accessibility Access alert saying “Naytto” would like to control this computer using accessibility features, with Open System Settings and a blue, default Deny button.

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.

The Mac’s desktop filling the browser tab during a session, with the Naytto window reading In session for sam.rivera@example.com and a round trip of 34 ms in a pill at the top.

25Test the connection

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

Your computers with the test result, Ready to connect from another browser, with checks for Signed in, Your computer answered, Private relay connected, Screen showing and Keyboard and mouse ready.

26Connect from your phone

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

Your computers on a phone, with Sam’s Mac mini Available and its Connect and Test connection buttons.

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)
Terminal over SSH showing naytto status: Computer Sam’s Mac mini, Account sam.rivera@example.com, Status Reachable from your browser, both permissions on, Keep reachable Off, Open at login On and 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

Terminal over SSH showing naytto help, a list of every naytto command with a one-line description of each.

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

Terminal over SSH showing naytto pause, with Status Paused: browsers can't connect, then naytto resume, with Status Reachable from your browser.

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.
Terminal over SSH after naytto keep-reachable always, saying Awake while the lid is open and pointing to the Naytto helper in System Settings › General › Login Items.
System Settings at Login Items & Extensions with Naytto’s switch off under App Background Activity, and a notification asking whether “Naytto” can run in the background for all users.

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.
Terminal over SSH after naytto keep-reachable always a second time, saying 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
Terminal over SSH after naytto remove, answered y, with the status showing Account Not added. Run: naytto add and Status Not reachable until it's added to an account.

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.