Web Terminal
A shell on a host, in the browser. The dashboard opens it through the host's
live link: no SSH port, no VPN and no
client software are needed on your side. On Linux the shell is a login shell
as root (bash -l, or sh where there is no bash); on Windows it is
PowerShell as SYSTEM. The shell is a child of the agent, which runs without a
sandbox, so it can write to the host like any root shell, and it ends with the
session. See
Agent Installation.
A terminal moves a few kilobytes per second, so its bytes travel over the
dashboard's link to the agent. Tunnels, which can carry far more, go through
the gateway instead.
For a graphical desktop (RDP or VNC) see Remote Desktop. The terminal is its own item, Terminal (agent), on every host with an agent; it needs the terminal action and
access.shell, and does not depend on the host's paths. The in browser item of an SSH entry is a real SSH
login with the stored entry through guacd, over the agent or a tunnel host, see
Remote Desktop. Where that login is not possible (for instance the desktop action is
off) and the terminal is available, a click on the SSH entry opens the terminal instead.
What a host must allow
The host's config.yaml has to list terminal under actions, and the agent
needs a live link. Nothing the dashboard sends can change that; see
Agent Settings. A host that does not
allow it answers with a message that says so, and the Connect button
explains why it cannot open a shell.
Who may open one
The access.shell permission, granted at the host's customer (see
Users and Permissions). Opening a root
shell is not implied by any role.
Two customer policies apply:
- Require a reason: the person opening the shell has to give one. It is kept with the session and in the audit log.
- Require approval: opening a shell files an access request for the host, and the shell opens once someone else who may open shells or tunnels at that customer has approved it under Access → Requests. The person who asked cannot approve their own. The approval covers shells, tunnels and SSH certificates on that host until it ends, so a second shell needs no new approval. Without this policy a shell opens at once.
Opening and using it
A terminal is opened in the web dashboard only; the desktop app has none.
Press Connect on a host - on its page or in a row of Infrastructure → Hosts
or Access → Hosts - and the terminal opens in a window of its own, like a
hypervisor console, with only a slim header naming the host and the customer
and the terminal below it. The window title says the same, so several
terminals can be open side by side and told apart. The window size follows the
terminal, and the colours follow the theme. If the browser blocks the popup,
the terminal opens full height on the session's page, at
/access/sessions/<id>, instead. Open in Access → Sessions reopens a
running shell the same way.
Closing the window - or the tab, or leaving the page - ends the shell as Disconnect does: the session closes, is audited and its recording is finished.
A session ends when
- you exit the shell or close it from the page,
- the window has not been heard from for 15 minutes: an open window tells the host every minute that it is there (agent 3.3.4 or later), so a long upgrade or script may run unattended in it; older agents end the session after 15 minutes without typing,
- it has run for 8 hours (unless the limit was removed), or the approval or access policy it opened under ends, if that is sooner,
- the person loses the shell permission at the customer, or withdraws the approval it opened under,
- an administrator ends it, or
- the host's link drops and does not come back.
Reconnecting
When a session has ended - the connection was lost, the host rebooted, the shell exited, the idle or
time limit was reached, an administrator ended it - the window stays open with what the shell printed,
and the top bar offers Reconnect. It opens a new session to the same host in the same window and goes
through the normal opening: the access.shell permission, the customer's reason, approval and
recording policies apply exactly as for the first open, and the reason given then is used again.
Nothing reconnects by itself. A host that is offline gives the usual refusal. The new session is a
session of its own in Access → Sessions.
Touch keys
The terminal window has the same touch key overlay as the remote desktop window: open by default on touch screens, a toolbar button to show or hide it, docked at the bottom or the top and remembered per browser. It has the sticky modifiers (tap for the next key, double tap to lock), Esc, Tab, the arrow keys, Home, End, PgUp, PgDn, Delete, F1 to F12, the key combinations, and a Show keyboard button for the on-screen keyboard. The clipboard is a floating panel under its toolbar button.
The time limit
The top bar of a running window shows the time left until the session's 8-hour maximum, counted down on screen. Remove time limit lifts the maximum for that session after a confirmation: it then ends only by the other conditions above, which are the 15-minute rule (an open window keeps the session alive), exiting the shell, closing the window, losing the shell permission, an administrator ending it, or the host's link dropping for good. A sign-in or approval window that is shorter than 8 hours still ends the session, and then the button is not offered; the countdown shows that end.
Only the session's own user, while they hold access.shell, and administrators may lift the limit.
The agent confirms to the dashboard that it dropped the limit; without that confirmation the limit
stands and the button reports it. Agents older than 3.3.4 do not know the request, so for them the
limit cannot be lifted. The lift is recorded as shell.limit_lifted in the audit log,
and the session's row and page in Access → Sessions say that the limit was removed.
Finding a host to connect to
Access → Overview counts what the signed-in account can reach right now: hosts with an agent and how many of them are connected, how many take a shell, how many take a tunnel, the sessions and tunnels open, and the access requests waiting for the account's decision. It lists the shells in use and updates live. Tunnels are counted for managers only.
Access → Hosts lists every host with an agent in reach. Each row shows whether the agent is connected, a Connect icon in the row's actions that opens the dialog described above (disabled, with the reason as its tooltip, while the host cannot take a shell), and whether a tunnel would open from the command line or the desktop app, or why not (see Tunnels). The customer's rules, a reason and the approval policy, apply exactly as on the host's own page.
Access → Clusters lists the clusters with how many of their members are connected and how many take a shell or a tunnel. A cluster has no shell of its own; Show hosts opens the hosts list narrowed to its members.
What a row offers depends on the account: without access.shell or access.tunnel
at the host's customer the row says so instead of offering the action.
Sessions
Access → Sessions lists the shells that are open and the history below them, filtered by customer, host, person and state. It updates live. Administrators see End now on an open session; it ends the shell on the host at once and closes the person's browser.
Recordings
If the customer's Record sessions policy is on (the default), the shell's output is recorded in the asciicast v2 format and can be played back from the session's row, with long pauses shortened. Keystrokes are not recorded, so a password typed into a prompt that does not echo it is not in the recording. What the shell prints, including anything a command echoes back, is.
- A recording stops at 32 MB; the session goes on.
- Recordings are deleted after 90 days; the session's row, with who, where, when, why and how much, stays.
- Playing a recording back is itself written to the audit log.
Audit log
Every step is recorded under the shell actions: opened, closed (with how it
ended and the byte counts), terminated by an administrator, its time limit
removed, and a recording played back. Requests and their decisions are recorded under access_request.
When something is wrong
| Message | Meaning |
|---|---|
| The host is not connected | No live link at the moment. Check the agent and, behind a proxy, that WebSocket upgrades reach /api/agent/link. |
| The host's configuration file does not allow terminals | terminal is not in actions in the host's config.yaml. |
| The host is still waiting for approval of its enrollment | The host has to be approved by an administrator first. |
| The host could not start a shell | The agent reports the cause in its log. On Windows the agent must run as the service, not interactively. |
A reverse proxy in front of the dashboard must pass WebSocket upgrades for
/api/access/terminal as it does for /api/live.