Skip to content

Remote access

Remote access lets you work on a device from anywhere, through Suta. It’s off by default. You open it for a limited time, and terminals, commands and service restarts only work while it’s open. Everything is recorded.

You need these permissions, which the Operator and Device manager roles include:

  • Manage remote access to open and close the window.
  • Run commands for terminals and commands without sudo.
  • Run commands with sudo for full administration (Device manager only).
  • Restart services to restart a service without sudo.

See Roles and permissions.

  1. Open the device. On the Overview tab, find Remote access.

  2. Select Enable remote access.

  3. Choose how long: 15 minutes, 1 hour or 4 hours.

  4. Select Enable access.

The status shows Enabling on device… until the device confirms, then Enabled with the time it closes.

To extend or shorten the window, select Change duration. Refreshing a page or opening a terminal never extends it.

  1. With remote access enabled, select Open terminal.

  2. Choose User for a normal shell, or Sudo for full administration.

  3. Choose a session length of up to 2 hours, then select Open terminal.

Terminal sessions are recorded in full, including what you type. Don’t type passwords or secrets into a recorded session.

Use suta device exec. Everything after -- is passed to the device as-is:

Terminal window
suta device exec kitchen-pi -- uname -a
suta device exec kitchen-pi -- sh -c 'uptime; df -h /'
suta device exec kitchen-pi --sudo -- systemctl status camera.service

Use sh -c when you need pipes, ; or variables. Commands time out after one minute by default; use --timeout to allow up to five minutes. The exit code of the remote command becomes the exit code of suta.

Restarting a service needs only the Restart services permission, not sudo:

Terminal window
suta device service list kitchen-pi
suta device service restart kitchen-pi camera.service

Select Disable access on the device page, or run:

Terminal window
suta device access disable kitchen-pi

Closing access ends all terminal sessions on the device. It can’t undo changes already made.

Block remote access for the whole workspace

Section titled “Block remote access for the whole workspace”

Admins can turn remote access off for every device in Settings > Remote access > Block remote access.

  • User sessions and commands run as a separate unprivileged account that can’t use sudo.
  • Sudo sessions and commands can make any change to the device.
  • To turn remote access off permanently on one device, create the file /etc/suta/remote-access.disabled on it as root. Suta never removes it.