Sessions live in folders in the Session Manager. Double-click to connect. Right-click for Connect, Properties…, Apply BBS Settings…, Duplicate and Delete…; right-click a folder to make a new session in it, select everything in it or apply the BBS settings to all of it. Ctrl+click selects several sessions; Properties… then changes only the settings you edit, in all of them.
File → New Session… opens a three-step wizard (protocol, connection details, name and folder). Turn the wizard off in Global Options to go straight to Session Options. File → Save Session As… saves the connection in the current tab.
View → Split Left/Right (Ctrl+Shift+E) and View → Split Top/Bottom (Ctrl+Shift+O) split the active pane, so several sessions show at once. Click a pane to type in it; it gets a blue border. Drag the bar between panes to resize them; each session gets its own size. Choosing a tab that is already on screen moves to its pane; any other tab, and new sessions, open in the active pane. View → Close Pane and View → Single Pane undo the split.
Click a tab and drag it left or right along the tab bar to move it; the other tabs make room. Drag it down out of the bar instead to give it its own window (below).
Tried on real computers: tear-off tabs and RDP sessions (new in 1.8.0) have been tried on a Linux desktop and on Windows with several monitors, including two RDP sessions at once.
Drag a tab down out of the tab bar to give it its own window. The session keeps running and nothing reconnects. You can also right-click a tab and choose Move to New Window, use Window → Move Tab to New Window, or the command palette. The new window has a bar with Dock to Main Window; closing the window also docks the tab (it does not disconnect). On X11 and Windows you can drag the window's Drag to the tab bar handle onto the main window's tab bar. On Wayland that is not possible (programs cannot see window positions), so use the button or close the window. Window → Dock All Tabs to Main Window brings every tab back.
Several tabs can have their own windows. Keys, function keys and shortcuts act on the window you are typing in. Split panes are in the main window only. Detached windows are not restored after a restart.
| To | Keys | Mouse |
|---|---|---|
| Select | Drag; double-click a word, triple-click a line. In a program that uses the mouse, hold Shift as you do it | |
| Copy | Ctrl+Shift+C or Ctrl+Insert | Right-click, Copy |
| Paste | Ctrl+Shift+V, Shift+Insert or Ctrl+Shift+Insert | Right-click, Paste; or the middle button |
Edit in the menu bar has the same commands. Plain Ctrl+C and Ctrl+V go to the program, unless you turn on the copy and paste keys in Session Options → Input. Text in a terminal cannot be cut.
In text boxes (Quick Connect, Session Options, the filter, Find and so on) use Ctrl+X, Ctrl+C and Ctrl+V; or Shift+Delete, Ctrl+Insert and Shift+Insert; or right-click for a menu with Cut, Copy, Paste and Select All.
~/.cache/termbench/dropped/ and that path is typed. Dropping on an SFTP or FTP browser window uploads instead; RDP and VNC tabs ignore drops.mouse=a) get the wheel, left and middle clicks and drags themselves. Hold Shift to use the mouse in TermBench instead: Shift+drag selects, Shift+wheel scrolls the scrollback. Right-click always opens TermBench's menu; Ctrl+right-click goes to the program.Every setting for a session is in Session Options, grouped in pages:
The built-in engine (libssh) is the default. It checks the server's host key against ~/.ssh/known_hosts and asks in the terminal before trusting a new one; a changed key is refused with a warning. It tries your SSH agent, the key file you chose (asking for its passphrase) and ~/.ssh keys, then keyboard-interactive and password logins, in the order set under Authentication order. It reads ~/.ssh/config unless you tick Ignore ~/.ssh/config.
The built-in engine also does:
ssh -X.id_ecdsa-cert.pub); the key file next to it is used. RSA, ECDSA and Ed25519 certificates work in the built-in engine.kinit, and optionally pass it on to the server.user@host:port, or several separated by commas. TermBench logs in to each in turn; each hop has its own host-key check and login, using the session's keys. The SFTP browser works through jump hosts too.-o): about 40 are handled by the built-in engine, for example ServerAliveInterval, ServerAliveCountMax, ConnectTimeout, Ciphers, KexAlgorithms, HostKeyAlgorithms, MACs, StrictHostKeyChecking, UserKnownHostsFile, IdentityFile, IdentitiesOnly, ProxyJump, LocalForward, RemoteForward and DynamicForward. They win over the fields on the page.Sessions that need an option the built-in engine does not handle (and agent forwarding on Windows) use the OpenSSH client automatically, and the terminal names the option; and you can choose the OpenSSH client for any session under SSH2 → SSH engine. Passwords are never saved.
Tried on real computers: tear-off tabs and RDP sessions (new in 1.8.0) have been tried on a Linux desktop and on Windows with several monitors, including two RDP sessions at once.
Choose the protocol RDP (port 3389) in the New Session wizard, Quick Connect or Session Options. The RDP page has the domain, a credential, the desktop size (fit to the tab, which follows the tab's size, or a fixed size), the clipboard switch, Ignore certificate errors (off by default) and Use the system RDP program instead. A user name may also be written DOMAIN\user or user@domain.
When you connect, TermBench asks for the password in the tab (unless a credential has one). It is kept only while the tab is open, unless you tick Remember password: then, once the login works, it goes to the system password store (Windows Credential Manager, or the desktop keyring on Linux) as a credential named “RDP <session name>”, and the session uses that credential from then on. A refused password is never kept. Delete the credential in Tools > Credentials to forget it. Passwords are not synced: if the session's stored password is missing on this computer (a session synced from another computer, or a password removed from the password store), the tab opens and asks for it, with the user name filled in and Remember password ticked, and the password is stored again under the session's own credential. The first time, it shows the server's certificate (issued to, issued by, validity and SHA-256 fingerprint) and asks whether to trust it, like an SSH host key; trusted certificates are kept in known_rdp_certificates in the settings folder, and a changed certificate is refused with a warning.
In the tab, all keys go to the remote computer except F11 (full screen); use TermBench's menus with the mouse. The bar above the desktop has Ctrl+Alt+Del, Windows key and Full screen buttons, and Ctrl+Alt+End also sends Ctrl+Alt+Del. Text copied on either side can be pasted on the other. Find, logging, file transfers and other terminal actions are not available on RDP tabs.
Use the system RDP program instead starts FreeRDP (Linux) or mstsc (Windows) in its own window. The password goes to FreeRDP on standard input, never on the command line; mstsc asks for it itself.
Not supported: Kerberos or smart-card logins, RD Gateway, sound, drives, printers, USB and several monitors. The remote keyboard layout should match yours.
New in 1.9.9. A VNC session shows a VNC server's desktop in a tab, the way an RDP session shows a Windows desktop. It is meant for Linux desktops (TigerVNC, x11vnc) and the consoles of virtual machines (QEMU/KVM).
Choose the protocol VNC in the New Session wizard, Quick Connect or Session Options, and give the host and the port: 5900 is the server's display :0, 5901 is :1, and so on. VNC has no user name.
If the server wants a password, TermBench asks for it in the tab when you connect; a server without a login just opens. Tick Remember password to keep the password in the system password store as a credential named “VNC <session name>”, which the session then uses, or pick a credential yourself on the RDP / VNC page of Session Options (only its password is used).
In the tab, keys and the mouse go to the remote desktop, and the bar above it has Ctrl+Alt+Del, the Windows key and Full screen (F11), as for RDP. Copied text goes both ways. With Fit to the tab, the desktop is resized with the tab on servers that allow it (TigerVNC does); on other servers it is shown at its own size, made smaller to fit.
Things to know:
localhost).
File → Log Session… starts and stops a log. Session Options → Logging can start one on connect, with a file-name template (%S session, %H host, %Y-%M-%D date and more), raw or plain-text logs, timestamps, a line prefix, a new file at midnight and connect/disconnect messages. Logs are readable only by you.
Tools → Button Bars… makes rows of buttons that send text or run an action; choose a bar per session (Buttons page) or for every session (Global Options). Highlighting and Key Mappings are tables: Add entry / Add mapping adds a row, the small buttons move a row up or down or remove it. A highlighting row has the word or pattern, a colour (click the swatch for a picker, or type a name or #hex) and a Regex box. For a key mapping press the key button and then the keys, choose the action, and type the text to send for send and sendline. Mistakes are shown under the row.
Options → Global Options → Sync keeps your sessions the same on every computer. Tick Sync sessions with other computers through a shared folder and choose a folder that Nextcloud, Syncthing, Dropbox or a network share keeps the same everywhere, then do the same on each computer with the same folder. Changes move between computers within a few seconds; Sync Now syncs straight away.
Synced: sessions and their folders, credential user names, button bars and the default session. Not synced: passwords (set them on each computer in Tools → Credentials) and settings that belong to one computer: local shell, serial port, key and certificate files, known_hosts, proxy command, pre-connect command, logon script and log and transfer folders. If two computers change the same session, the newer change wins. Use a folder only you can write to.
A Local Shell is the same session on every computer: local shell sessions with the same name from different computers are kept once (from 1.9.12), and each computer uses its own shell program, arguments and starting folder for it. Give local shells that should stay separate different names. Before 1.9.12 a newly installed computer could add a second Local Shell to all of them; delete one and the deletion reaches the others.