User guideAdministrationUpdated

Remote terminal

When a patch fails or a host needs a look, an organization administrator can open a root shell on a Linux host from the portal. Nothing is opened on the host's network: the host calls out to RemediForge, as the patching agent does.

Remote access is off until you switch it on, and it exists on a host only if you install its own agent there.

Switch it on

  1. In Settings, turn on Remote access for the organization.
  2. Choose the rules for sessions:
    • Ask a second administrator to approve every session (off by default).
    • Idle limit (default 15 minutes) and session limit (default 60 minutes).
    • Keep recordings for (default 30 days) and where: this server (default), an NFS folder (own-server installs only), or an S3 bucket (coming).

Install the remote agent on a host

The patching agent must already be installed on the host. Remote access has its own enrollment token, separate from the patching agent's:

  1. In the portal, an organization administrator makes a remote access enrollment token (Remote access, Install remote access; patch administrators cannot: holding a shell on a host is a different trust from patching it). Give it a name and a short life; one use is enough for one host. Like the patching agent's tokens it can be limited to networks and host names, and can require an administrator's approval of each host.
  2. Copy the command the portal shows and run it on the host, as root:
bash
curl -fsSL -A remediforge https://YOUR-PORTAL/install-remote.sh | sudo sh -s -- --token ppe_...

(add --via-cache https://YOUR-CACHE for a host that reaches RemediForge through a patch cache). Without a token the installer stops before it downloads anything. A patching agent's token does not work here, and a remote access token does not enrol a patching agent.

If the token requires approval, the host appears under Remote access as waiting; an organization administrator approves or rejects it there, and the agent on the host enrols by itself once it is approved (the installer says it is waiting). The host then appears under Settings → Remote access with its state. To remove remote access from a host, run the installer with -s -- --uninstall, or revoke the host in the portal. Removing the patching agent, in the portal or with its own uninstall, removes the remote agent with it. A host an administrator rejected stays rejected for 48 hours, whatever token it uses. Allowing a revoked host again does not bring its old credential back: run the installer on it again with a new token. If that enrolment fails, the installer puts the host's previous credential back. The address must start with https://.

Open a session

  1. Open the device and choose Open terminal. Give a reason (for example the failed job); it is recorded and shown to whoever approves.
  2. If your organization asks for approval, a second administrator approves it.
  3. The terminal opens in its own browser window, and anyone logged in on the host sees a message that a session started and, later, that it ended.
  4. Type and paste as in any terminal. End the session from the window, or close the shell with exit.

Only the organization administrator can open a session. A host allows one session at a time. A session ends by itself after the idle or session limit.

Recordings

Every session is recorded: what the host printed, what was typed, and window size changes. Recordings are encrypted and kept for the number of days you chose. Only the organization administrator can watch or download one, and each time one is opened it is recorded in the Audit log. Anything typed in the shell is in the recording, including passwords typed at a prompt, so treat it as sensitive.

What the Audit log shows

Requested, approved or rejected, started, ended (and by whom), recording opened, agent enrolled (with the token's name), a refused enrolment and why, a host approved or rejected, revoked or allowed again, and changes to the settings.

If a host does not appear

  • The patching agent must be installed and enrolled first.
  • The installer needs a remote access token: not expired, not used up, not revoked, used from an allowed network and host name, and not a patching agent's token. A host waiting for approval is listed under Remote access.
  • Remote access must be switched on for the organization, and the host must not be revoked.
  • Check the service on the host: systemctl status remediforge-remote.
Remote terminal | RemediForge