Volver a la wiki

Opening and managing SSH sessions

What it is

An SSH session is a live console between your browser and a network device. It can run in two ways:

Both kinds of console have the same toolbar and the same tools (since v1.204.124): scripts, Cluster Mode, recording, Files, themes. CreaRack supports multiple simultaneous sessions in tabs and panes, and the sessions persist while you navigate around the app.

Run on: choosing where the console runs

At the top of the sidebar of the Terminal page there is a selector, Run on, with two options:

Your choice is remembered per organization in this browser (all its tabs), and it is the same choice the network tools use (Discovery and Auto-Provision). If you picked another Agent there, consoles still open through the Primary agent and the line under the selector says so. When the Primary agent cannot be used, that line tells you why. Administrators also get an Agent Fleet button next to the selector, which opens the Agent Fleet Manager.

When remote access is off

Remote access via Primary agent is off for every organization until an administrator turns it on. While it is off, the Primary agent option is greyed out and the Terminal page shows a notice under the selector: Remote access via Primary agent is off for this organization. It explains that consoles open from this PC and only reach its networks, and that remote network scans are not available. From outside the client’s network a console then fails with a timeout, even if the device was discovered correctly through the Primary agent.

Turning remote access off is only done in Organization Settings › Remote access via Primary agent, because it closes every open console of the organization. See [[crearack—settings—remote-console]].

How to open a session

Managed devices and detected devices: one click

  1. Open the Terminal page and check Run on.
  2. Click a device in the sidebar.
  3. The session opens. With Primary agent, the server hands the device’s stored credentials to the Primary agent once; with This PC, the Local Agent retrieves them from the server. In both cases the browser never sees a password.

Every tab shows where its console runs: a PRIMARY mark on remote consoles and a This PC mark on local ones, and remote tabs are named with the organization and the device («CCIB · AU-Nodal»), so you can tell consoles of several clients apart. Under a remote console a one-line status strip says what is going on: Live via Primary agent …, Connecting…, Reconnecting… (the Primary agent lost CreaRack for a moment; your session on the device is kept for up to 6 minutes and typing is paused), the idle warning one minute before the console closes, and the reason when it closes.

Only three situations ask you something, always in the same dialog:

Everything else (the limit of 5 open consoles per organization, a read-only role, a rejected password with a Use other credentials button) is a one-line notice.

Manual connection

For any host not registered in CreaRack:

  1. Press Manual Session in the sidebar.
  2. Enter IP Address / Host, Port (default 22), Username and Password.
  3. Press Connect.

Manual sessions always run on This PC and are temporary: they are not saved across reloads.

From the Rack Editor

Select a device with Network Management in a rack and press its terminal button. The Terminal page opens with the session already connecting, through the Primary agent when Run on says so. See [[crearack—racks—ssh-desde-rack]].

From a device card (Wireless, UPS, Signage, Observatory)

Open a device in Wireless, UPS or Signage and press Terminal in its header. The Terminal page opens in a separate window, smaller than the screen and with a coloured strip along its top edge so you can tell it apart from the main CreaRack window; it remembers the size you leave it at. It is named after the device: if the device has SSH credentials stored on its card, the session connects on its own; if not, the Manual SSH Session dialog opens with the IP address pre-filled. In Observatory the same button appears on devices that come from a rack; standalone monitors do not have it. All these buttons land on the Terminal page, so the Run on selector and the Remote console notice apply to them too.

The session toolbar

Every session, local or remote, has the same toolbar above the console:

How to manage open sessions

Switching organization with open consoles

Remote consoles keep running if you switch organization in another browser tab: that tab shows a fixed notice and the consoles stay connected to their client. If you switch in the same tab, CreaRack asks first: open the other organization in a new tab, switch and close the consoles (also the ones you parked with Close), or cancel.

Duplicating the browser tab (the browser’s own «Duplicate» command) copies the parked consoles to the copy; the original then shows «Opened in another tab».

Troubleshooting

Subir