Prajvis logoPrajvis
Remote machines

Remote machines

Connect a Linux machine that you own, share it with people in your organization, and let an agent run commands on it.

A remote machine is a Linux machine that you own, for example a server in your office or a virtual machine in your cloud account. When you connect it to Prajvis, an agent can run commands on it. The machine connects out to Prajvis. You do not need to open ports on it.

You manage machines in Workspace › Remote machines. The list has two groups: Mine and Shared with me.

Before you start

You need a Linux machine with bash and curl, and a user account on it that can install a program.

Enroll a machine

Get the install command

  1. In the sidebar, select Workspace.
  2. Select the Remote machines tab.
  3. Select Add computer.
  4. In Machine key, enter a name for the machine, for example billing-reports-vm. Prajvis changes hyphens to underscores.
  5. Keep Linux.
  6. Select Enroll.

The machine shows in Mine as Offline, with an install command under it.

The Remote machines tab in Workspace with the Machine key field and the Enroll button

The install command contains a one-time token. The token stops working after 15 minutes. Do not share the command.

If you still have a bookmark to Settings › Remote computers, that page points here.

Run the command on the machine

  1. Copy the install command.

  2. On the machine, open a terminal and paste the command. It looks like this:

    curl -fsSL https://<your-workspace>/api/v1/remote-machines/install.sh | bash -s -- --token <token>
  3. Wait for the message enrolled computer.

On most Linux machines, the program starts by itself and starts again after a restart.

If the machine has no user service manager (systemd --user), the installer still enrolls it and prints start commands. USER may be unset on headless hosts. Run the foreground command, or the nohup command (logs go to ~/.prajvis-remote-computer/connector.log):

Foreground:

~/.local/bin/prajvis-remote-computer --api-url https://<your-workspace> --data-dir ~/.prajvis-remote-computer

Background:

nohup ~/.local/bin/prajvis-remote-computer --api-url https://<your-workspace> --data-dir ~/.prajvis-remote-computer >> ~/.prajvis-remote-computer/connector.log 2>&1 &

Check the status

In Workspace › Remote machines, the machine shows Online, the program version, and Last seen.

Select a machine to expand it. The details show status, last seen, connector version and architecture, Attached to (agents that use the machine), and Shared with (people you shared it with). For a machine in Shared with me, the details also show the owner.

A remote machine in the list with the Online status and the program version

Let an agent use the machine

An agent can use only the machines that you attach to it. You can attach machines you own and machines in Shared with me.

  1. Open the agent and select the Settings tab.
  2. Select Computer, then find Remote machines.
  3. In Add a remote machine, select the machine, then select Add. Shared machines show the owner name.
  4. Select Save.
The Remote machines section of the agent settings with Add a remote machine

Now ask the agent to work on the machine. For example: On billing-reports-vm, show the free disk space.

Share a machine

Only the owner of a machine can share it. The only permission is Use by agents.

  1. In Workspace › Remote machines, open Mine.
  2. On the machine, select Share.
  3. In Find by email, enter the email address of a person in your organization and select them.
  4. Select Share.

They can attach the machine to their own agents. Their agents can run commands and jobs on it. They can route their own agent's browser through the shared machine.

They cannot:

  • Open the interactive terminal of the machine
  • Update the connector or get a new install token
  • Share it or delete it

In a shared or collaborator thread, a remote command runs only if the person who sent the message owns the machine or has a share. If they do not, the agent gets an error that the machine is not shared with them.

The agent browser proxy follows the owner of the thread, not the person who sent the message.

Stop sharing

  1. In Workspace › Remote machines, select Share on the machine.
  2. Remove the person from the list.
  3. Confirm Remove access?

They lose access right away. The machine is detached from their agents. Open sessions and streams are closed. Jobs they started are cancelled.

Use the machine as a browser proxy

The agent can open websites from the network of your machine. For example, use this when the agent must open an internal site, or a site that accepts only the addresses of your company.

  1. Open the agent and select the Settings tab.
  2. In Remote machines, attach the machine. See Let an agent use the machine.
  3. If you attached more than one machine, select one in Route the agent's browser through. If you attached one machine, Prajvis uses that machine.
  4. Select Save.

The machine shows the label Browser proxy. The browser of the agent now opens websites through this machine. This works for machines you own and for machines in Shared with me.

  • Only the browser of the agent uses the machine. Commands in the terminal of the agent do not.
  • The machine must be Online. If no proxy machine is online, the browser opens websites directly.

Get a new install token

If the token expired before you ran the command, select New install token on the row of the machine. Use the new command within 15 minutes. Only the owner sees this control.

Update the program

When a newer version of the program is available, the row of the machine shows an update. Select it to update the program on the machine. Only the owner sees this control.

Remove a machine

  1. In Workspace › Remote machines, select Delete on the row of the machine. Only the owner can delete it.
  2. On the machine, stop the program and delete it.

On this page