====== Sessions, SSH and options ====== ===== Saved sessions ===== 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. ===== Split panes ===== **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. ===== Tab order ===== 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). ===== Tear-off tabs ===== **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. ===== Copy and paste ===== ^ 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. ===== The mouse in the terminal ===== * **Wheel:** scrolls back through the scrollback. In a full-screen program that doesn't use the mouse (less, man) it sends the Up and Down arrow keys instead. * **Drag** selects text, double-click selects a word, triple-click a line. Right-click opens the menu (or pastes, if set in Session Options). * **Drop files** from a file manager or a screenshot tool onto a terminal and their paths are typed in, quoted for the shell and followed by a space (as in Konsole), so for example Claude Code can open a dropped picture. A picture dragged from a web browser is saved under ''~/.cache/termbench/dropped/'' and that path is typed. Dropping on an SFTP or FTP browser window uploads instead; RDP and VNC tabs ignore drops. * **Programs that ask for the mouse** (Claude Code's full-screen view, htop, mc, vim with ''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. * **Copying from such a program:** over SSH, a program like Claude Code copies by sending the text to the terminal (OSC 52). Drag over the text as usual, then press **Ctrl+Shift+C** or **Ctrl+Insert**, or right-click and choose **Copy**, within two minutes. A box in the window says how many characters were copied. To have a drag copy by itself, right-click after dragging and choose **Always Let This Session Copy**; a saved session remembers it. Only do that for systems you trust, because such a system can then change the clipboard at any time. To undo it, untick **Allow the remote system to write to the clipboard (OSC 52)** in Session Options. A copy larger than about 1 MB is ignored. ===== Session Options ===== Every setting for a session is in **Session Options**, grouped in pages: * **Connection:** name, protocol, host, port, user name, folder and description. * **SSH2:** engine, key file and key generator, certificate, authentication order, jump host, proxy command, algorithms, agent forwarding, compression and extra OpenSSH options. * **Forwarding:** local (L), remote (R) and SOCKS (D) port forwards, forwarding-only sessions and X11. * **Local Shell**, **Serial**, **Telnet** and **RLogin** settings. * **Logon:** pre-connect command, remote command, expect/send pairs, an initial Enter and a logon script. * **Terminal:** terminal type, size, scrollback, resize behaviour, ANSI-BBS, iCE colours, line wrap. * **Appearance:** colours (each picker opens in its own window with a Close button), VGA font, font family and size, cursor, character set and tab title. * **Input**, **Behaviour**, **Highlighting**, **Key Mappings**, **Logging**, **Buttons** and **File Transfer**. ===== SSH ===== 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: * **X11 forwarding** (Forwarding page): remote X programs show on your desktop. The server only ever sees a made-up cookie; TermBench swaps in the real one. Without "Trust X11 clients" it uses an untrusted cookie, like ''ssh -X''. * **Agent forwarding** (SSH2 page, Linux): the server can use your SSH agent's keys, for example to log in onward. * **OpenSSH certificates** (SSH2 page): set the certificate file (''id_ecdsa-cert.pub''); the key file next to it is used. RSA, ECDSA and Ed25519 certificates work in the built-in engine. * **Kerberos (GSSAPI)** (SSH2 page): log in with your Kerberos ticket from ''kinit'', and optionally pass it on to the server. * **Compression**. * **Jump hosts** (SSH2 page): ''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. * **Extra OpenSSH options** (SSH2 page, one per line, without ''-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. * **Use FIPS-approved algorithms only** (SSH2 page): key exchange, ciphers, MACs and key types are limited to FIPS-approved ones, RSA keys must be 2048 bits or more and Ed25519 keys are refused with a clear message. The page shows whether OpenSSL's FIPS provider is active on this computer. This limits algorithms; TermBench itself is not a FIPS 140 validated module. 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. ===== RDP (Windows Remote Desktop) ===== **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 ", 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. ===== VNC (Linux desktops and virtual machine consoles) ===== 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 ", 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: * **The connection is not encrypted**, and the VNC password is a weak protection. Use VNC on a network you trust, or through an SSH tunnel (a local forward of port 5900 in an SSH session, then connect the VNC session to ''localhost''). * Servers that insist on an encrypted login (VeNCrypt/TLS, RealVNC's or Apple's own) are refused with a message. * Your own mouse pointer stays visible over the remote desktop, so on some servers you see two pointers. * Keys are sent as the characters of a US keyboard. * Find, logging and file transfers are not available in VNC tabs. ===== Logs ===== **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. ===== Button bars and key mappings ===== **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. ===== Sync between computers ===== **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.