Renters
Connecting to a rented machine
NVTO Connect carries SSH and remote desktop from your computer to a machine you lease: as a menu-bar app on a Mac, or as a command-line client on macOS, Windows and Linux. Either way it joins an encrypted overlay network, proves to the node that you hold the lease, and exposes the machine on ports of your own computer. Read this page when you need more than the quickstart: the app's menu, another operating system, different ports, a slow or refused connection.
How does the app for Mac work?
The NVTO Connect app runs on macOS 13 or later, on Apple silicon and Intel. It is a signed and notarized disk image, NVTO-Connect-vX.Y.Z.dmg, on Download and the GitHub releases. It sits in the menu bar, with no Dock icon, and runs the command-line client inside it, so everything on this page about paths, tokens and errors applies to it as well.
In the console, each active lease has two buttons, Remote desktop and Terminal (SSH). They open the app through a nvto-connect:// link; the browser may ask once whether to open NVTO Connect. Under them, Get the app leads to the download, and On Windows or Linux, or in a terminal shows the nvto-connect open <lease-id> command instead. A link can only open one of your own leases in one of those two ways.
- Signing in. If the app is not signed in, it opens your browser to approve a sign-in code and shows the code in a small window. This is the same browser sign-in as
nvto-connect login; the app never asks for your password. - Remote desktop. Opens the desktop of the lease's virtual machine in macOS Screen Sharing, where
renteris already logged in. The app reads the remote-desktop password from the machine and fills it in. - Terminal. Opens Terminal with SSH to the same account, using this computer's key. Each lease keeps its own list of known host keys, so a new machine at the same local address does not trigger a warning.
- Ports. The app chooses free local ports by itself, so several leases can be open at once.
- Updates. The app updates itself. An update that arrives while a connection is open waits until none is.
| Item | What it does |
|---|---|
| Signed in as … / Sign in… | Shows the account in use, or starts the browser sign-in. |
| Your leases | Each active lease, as “Mac 1a2b3c4d · ends …”. Its submenu has Open remote desktop and Open Terminal (SSH). |
| While connected | The lease's submenu adds the connection path (direct or relayed, with the latency), Machine check: … once the machine has been checked, Account: renter, Copy remote desktop password, Copy account password (for System Settings) and Disconnect. A machine that does not match what you ordered also raises an alert. |
| No active leases | Shown when you have none, with Rent a Mac…, which opens the market. |
| Open the NVTO console | Opens the console in your browser. |
| Check for updates… | Looks for a new version now. |
| Sign out | Signs this computer out and closes every connection. |
| Quit NVTO Connect | Closes every connection and quits. |
What does the command-line client do while it runs?
- It joins the overlay as a temporary client. Each run is a fresh join; its overlay state lives in a temporary directory that is removed when it exits.
- It listens on
127.0.0.1only: port 10022 for SSH and 15900 for remote desktop. Nothing is exposed to your local network. - For every connection to those ports it presents a lease token to the node's gate. Tokens last 10 minutes; Connect fetches a new one when less than a minute is left.
- Every 30 seconds it measures the path to the machine, prints it, and reports to the platform whether it is direct or relayed and its latency. Nothing about what you send is reported.
It needs no administrator rights, installs no network driver and changes no system setting. When you stop it with Ctrl+C the ports close and your computer leaves the overlay.
How does Connect check the machine?
The owner controls the node, and the node's NVTO Node app could claim a better machine than it is. Connect is your own program, so when it connects, the app and the command-line client alike, it checks the machine itself, in the background, once the machine has accepted this computer's key. It copies its own measuring program, nvto-guest, into the machine and runs it there instead of the machine's command-line tools, so replacing those tools changes nothing. The program reads the chip, CPU cores, memory and disk, hashes data on one core and on all cores, fills 60% of the memory and reads it back, and writes 1 GiB to disk and reads it back. Every job works on data derived from a fresh random key, and Connect checks a few of the answers itself. Connect also receives 32 MiB through the tunnel. That takes about 15 seconds, and the machine is busy meanwhile. Then Connect removes the program and reports to the platform.
The platform compares the report with what the node claims: the same chip family and tier (an M4 is not an M4 Pro), at least the claimed CPU cores, at least 90% of the claimed memory and, where the lease has a machine of its own, at least 85% of its disk. A wrong answer to any job is a mismatch. Once at least 3 checks of machines with the same chip have matched in the last 90 days, a machine far slower than they are is a mismatch too; until then the speeds are recorded, not judged.
- How often. Once a day per lease on each computer.
open -no-checkskips it. - In the console. Each active lease shows Machine check: Runs when you connect with NVTO Connect, until the first check; then Matches what you ordered, or Does not match what you ordered with the problems found.
- In the app. The lease's submenu shows Machine check: …, and a mismatch raises an alert.
- On the command line.
openprints the result: what it found, or each problem. - On a mismatch. The node's owner and the operators are notified. If the check finds a mismatch within the first 60 minutes of a new lease (not after a renewal), the lease ends at once and the period's full rent goes back to your balance; the node is paid nothing for it. That happens for at most 2 leases per renter in 30 days. A mismatch found later, or beyond that, is recorded and counts toward stopping the node, but nothing is refunded. A check on a machine of your own never refunds. A node with mismatch reports from two different renters in the last 30 days takes no new orders while those reports stand; the operators are notified and can also quarantine it.
The check does not catch everything: memory overcommit, for one, shows only once there are other machines with the same chip to compare with. Security lists what it does not cover.
What is different on macOS, Windows and Linux?
| macOS | Windows | Linux | |
|---|---|---|---|
| Signature | Signed and notarized | Not signed; check against SHA256SUMS | Not signed; check against SHA256SUMS |
| Session file | ~/Library/Application Support/NVTO/connect/session.json | %AppData%\NVTO\connect\session.json | ~/.config/NVTO/connect/session.json (or under $XDG_CONFIG_HOME) |
| Remote desktop viewer | Built in: Screen Sharing | Install a VNC viewer | Install a VNC viewer, or use the desktop's own |
What -open-vnc runs | open vnc://127.0.0.1:15900 | The viewer registered for vnc:// links, if there is one | xdg-open vnc://127.0.0.1:15900 |
Which VNC viewer do I need?
The machine's screen is served over VNC by NVTO Node on the owner's Mac, from the virtual machine's display. Any VNC viewer pointed at 127.0.0.1:15900 works while open is running. It asks for no user name, only the 8-character remote-desktop password that open prints. Use NVTO Connect 0.1.13 or later: older versions cannot open the remote desktop.
- macOS. Nothing to install.
open vnc://127.0.0.1:15900, or add-open-vncto theopencommand, which also fills in the password. - Windows. Windows has no VNC client of its own. Install one (for example RealVNC Viewer) and connect it to
127.0.0.1:15900.-open-vncworks only if the viewer registered itself forvnc://links; otherwise Connect prints “no VNC viewer is registered for vnc:// links” and carries on. - Linux. The desktop's viewer (GNOME Connections, Remmina, KRDC) usually handles
vnc://links throughxdg-open. Ifxdg-openis missing, Connect says so; start the viewer yourself.
A failure to start the viewer never stops Connect: the ports stay open and SSH is unaffected.
Which ports are used, and how do I change them?
The defaults are 10022 for SSH and 15900 for remote desktop, both on 127.0.0.1. Change either with a flag. You need this when a port is taken, or to hold two leases open at once, each open with its own pair of ports. A port of 0 takes any free one, and the ports chosen are printed; the app does this for you. The machine's SSH name, nvto- and the first 8 characters of the lease ID, follows the port you chose. With -no-ssh-config, or wherever you need the port itself, sign in as renter with the key Connect keeps in its state directory (see the reference):
$ nvto-connect open <lease-id> -ssh-port 20022 -vnc-port 25900
$ ssh nvto-<first-8>
$ ssh -i <state-dir>/id_ed25519 -p 20022 renter@127.0.0.1If a port is in use, open stops before connecting anything and names the port:
nvto-connect: local port 10022: listen tcp 127.0.0.1:10022: bind: address already in useWhy does SSH warn that the host key changed?
Under its nvto- name, each lease's machine has a known-hosts file of its own under ~/.ssh/nvto/, so this does not happen. Connecting to the port directly, every machine you rent appears at the same address, 127.0.0.1:10022, and your SSH client compares a new machine's host key with the one it remembered for the last. Give each lease its own name in known_hosts instead of removing the check:
$ ssh -i <state-dir>/id_ed25519 -p 10022 -o HostKeyAlias=nvto-<lease-id> renter@127.0.0.1Is my connection direct or relayed, and how do I tell?
The two ends connect peer to peer where both networks allow it. Where they do not, traffic goes through a relay. Both are encrypted end to end; the relay forwards ciphertext. A relayed path adds latency, which you notice most on the remote desktop.
Connect prints the current path every 30 seconds. The first form is direct, with the node's network endpoint; the second is relayed, with the relay's region code:
path: direct via 203.0.113.24:41641, 18.2 ms
path: relayed via DERP "<region>", 64.0 msThe console shows the last report next to the lease: “Connected directly” or “Connected through relay”, with the latency. A path can start relayed and become direct a few seconds later, or change when either network changes. A direct path needs outbound UDP from your network; a network that allows only web traffic will stay relayed.
Is there a smoother remote desktop for a slow line?
VNC sends the screen as a stream of pictures, so it suffers on a slow, distant or lossy line. For writing code, SSH is lighter still: a terminal or an editor's remote mode sends only text. When you need the desktop itself, use Jump Desktop or UU Remote, whose installers are in the machine: both send the screen far more efficiently than VNC. Jump Desktop's browser access is free, and so is UU Remote.
Get onto the machine
Open the lease's remote desktop or SSH through NVTO Connect, as usual.
Install one of them
The installers are in
/Users/Shared/NVTO:JumpDesktopConnect.pkgandUURemote.pkg. In Finder, choose Go > Go to Folder…, open/Users/Shared/NVTOand double-click one; macOS asks for the account password, which Copy account password in NVTO Connect copies. Or runsudo installer -pkg /Users/Shared/NVTO/JumpDesktopConnect.pkg -target /(orUURemote.pkg) in the machine's terminal, which asks for nothing.Sign in to one of them on the machine
Open the one you installed and sign in with your own account from jumpdesktop.com or uuyc.163.com. Allow the permissions macOS asks for.
Open it from your computer
With the same account, open Jump Desktop in a browser or the UU Remote app, and choose the machine. NVTO Connect does not need to stay open for this.
How do I stay connected?
- Keep
nvto-connect openrunning for as long as you use the machine. Closing its terminal closes every SSH and remote desktop connection through it. - A renewal does not interrupt you. The lease is renewed 10 minutes before the period ends and the node learns the new end time on its next heartbeat.
- If your computer sleeps or moves to another network and connections stop working, stop
openwith Ctrl+C and run it again. - Starting
openis limited to 12 times an hour per lease. Beyond that the platform answers “too many attempts; try again later”. - When the lease ends, the node closes your connections. The next time Connect needs a token for a new connection, it prints “the lease has ended; closing” and exits.
How do I sign out?
In the app, choose Sign out. On the command line, run logout: it ends the session on the platform and deletes the session file, session.json. status tells you whether this computer is signed in, and to which account.
$ nvto-connect logout
signed out
$ nvto-connect status
not signed inIf you used -dir with login, pass the same -dir to logout and status. The app and the command-line client share the default session, so signing out in one signs out the other.
What do I do when something goes wrong?
Errors are printed as nvto-connect: <message> (<code>). Find the message or the symptom below.
| What you see | What it means | What to do |
|---|---|---|
not signed in; run nvto-connect login first | There is no session file in the state directory. | Run nvto-connect login. If you signed in with -dir, pass the same -dir to every command. |
the sign-in was denied on the website | Deny was chosen on the Approve a sign-in page. | If that was a mistake, run nvto-connect login again and choose Approve. |
the code expired; run nvto-connect login again | The code was not approved within 10 minutes. | Run nvto-connect login again and approve the new code. |
authentication required (unauthorized) | The session has expired (30 days) or is not valid on this server. | Sign in again. |
this lease is not in the signed-in account | The lease ID is mistyped, or the lease belongs to another account than the one signed in. | Copy the ID from nvto-connect leases, or check the account with nvto-connect status. |
this lease has ended (lease_not_active) | The lease is over: expired, ended early, or ended by the platform after a long outage. | Check the lease in the console. Order again if you still need a machine. |
the machine has not joined the network yet; try again shortly (node_not_reachable) | The node has not reported an overlay address. | Wait a minute and run open again. If it persists, the machine is not serving; see Outages. |
too many attempts; try again later (rate_limited) | Too many sign-in attempts, or open started more than 12 times in an hour for this lease. | Wait, then try once. |
join overlay: … | Your computer could not reach the overlay's coordination server. | Check your internet connection and any firewall that blocks outbound HTTPS. |
local port 10022: … address already in use | Another program, or another open, holds the port. | Stop it, or choose other ports with -ssh-port and -vnc-port. |
SSH closes at once; Connect logs gate: refused: no-active-lease | The node is not serving your lease right now: the lease just ended, or the node has lost contact with the platform and suspended access. | Run leases and check the console for a recorded outage. If the lease is active and no outage is shown, see What if the platform itself is down?. |
Connect logs gate: refused: token-expired | The node considers the token expired. The usual cause is a wrong clock on one side. | Check that your computer's clock is set automatically, then run open again. |
SSH hangs, then Connect logs dial upstream: … | The node cannot be reached over the overlay: it is offline or its network is down. | See Outages. Offline time is not charged. |
| SSH asks for a password you do not have | SSH may be using a different key from the one Connect made for this computer. | While Connect is connected, run ssh nvto-<first-8> or use the account renter with Connect's key. See Ports. |
| The remote desktop is slow | The path is relayed, or the uplink at the node is the limit. | Look at the path: lines. Try a network that allows outbound UDP. On a slow line, use SSH for code, or Jump Desktop or UU Remote for the desktop. |
machine check: this machine does not match what was ordered: | Connect checked the machine and the platform found it short of what the node claims. The problems follow, one per line. | The owner and NVTO have been told. Found within the first 60 minutes of a new lease, the mismatch ends the lease and refunds the period's rent to your balance automatically (at most 2 times in 30 days). See the check. |
| SSH warns that the remote host identification has changed | You connected to 127.0.0.1:10022 directly, where every machine you rent appears at the same address. | Connect by the machine's nvto- name, or give each lease its own HostKeyAlias. See the host key. |
could not open the remote desktop: … | -open-vnc could not start a viewer: on Windows no viewer is registered for vnc:// links, on Linux xdg-open is missing. The connection itself is up. | Start a VNC viewer yourself and connect it to 127.0.0.1:15900 with the password open printed. See VNC viewers. |
The private folder: line says not available (could not unlock the private volume: …) | This lease's ~/Private was made by NVTO Connect on another computer, or with another -dir. Its passphrase is kept only there. | Connect once from that computer, with the same state directory, to unlock it. Without the passphrase its contents cannot be read. |
For anything else, send the lines Connect printed and the lease ID to hello@nvto.com.