Casvisor
Assets

Connecting

There are two ways into an asset from the browser, and for SSH assets a third: your own SSH client through the SSH gateway.

The workbench

/workbench is where people who are not administrators work, and administrators can use it too. The left side lists every asset the user may connect to, with a search box; the right side holds one tab per open connection.

  • Click an asset to open it in a new tab. Clicking an asset that is already open switches to its tab.
  • An asset the user may connect to as several system accounts is listed once for each, with the account's username.
  • Close a tab to disconnect it. Leaving the page disconnects them all.
  • Each tab is its own session, so an administrator sees one line per tab in the session list.

Connecting from the asset list

On Assets, the Connect button opens the asset at /access/<organization>/<name>, a page that holds only the session and fills the browser window. Bookmark it to reach one server directly.

If the asset has no stored username or password, the button asks for what is missing first. See The account. When the user may connect as several accounts of the asset, the button opens a Connect as menu to pick one; see System accounts.

Next to it, the Open in a local client button opens the asset in a client on your own machine: Xshell, WinSCP or a terminal through the SSH gateway, Remote Desktop Connection (mstsc) for RDP assets, signed in with the stored password, or a port forward for the others, with one-time links and commands. See Local clients.

What happens on connect

  1. The browser asks Casvisor to start a session for the asset.
  2. Casvisor checks that the user is signed in and that a permission gives them Connect on this asset, as the chosen account, from their IP address, right now. Administrators skip this check.
  3. Casvisor opens a WebSocket for the session. It checks again that the session was started by the same user and that the permission still holds, then connects to the asset, through its network gateway if it has one.
  4. The session shows as Online in the session list until the tab is closed or an administrator stops it, and is recorded as it goes.

If the check fails, the tab shows why, for example you have no permission to connect to the asset: my-org/web-01 as the account: root. A user who has no permission for an asset can ask for it with an access request.

Keyboard and clipboard

  • SSH and Telnet run in an xterm.js terminal: colours, resizing with the window, and the usual copy and paste of the browser. For SSH, with Upload or Download in the permission, the Files button in the top right corner opens a file panel beside the terminal.
  • MySQL, PostgreSQL, SQL Server, Oracle, Redis, MongoDB, ClickHouse and Dameng open a console with the databases and tables (Redis keys, MongoDB collections) on the left and an editor; see Databases.
  • RDP and VNC run in a canvas, with a toolbar for full screen, the clipboard and key combinations such as Ctrl+Alt+Del. Keys go to the remote side as typed. Clipboard sharing follows the Copy and Paste actions of the user's permission. RDP follows the size of the browser window and, with Upload or Download, has a Files button for moving files.

See Protocols for the details of each.

Edit on GitHub

On this page