Terminals, tabs and panes
Tabs, split panes, broadcast input, find, session logs, auto-reconnect, tmux and agent forwarding in Harbor.
Terminals, tabs and panes
Each SSH session opens in its own tab, and all of them keep running at once. The terminal supports
256 colors and true color, clickable links, mouse input for programs like htop and vim, and
resizes with the window.
Tabs
- Ctrl+Shift+T (macOS ⌘T) opens a new session; Ctrl+Shift+W (⌘W) closes the tab.
- Ctrl+Tab and Ctrl+Shift+Tab move between tabs; Ctrl+Shift+1…8 (⌘1…8) jump to a tab, and Ctrl+Shift+9 (⌘9) to the last.
- Drag tabs to reorder them. Middle-click closes one.
- Right-click a tab for Duplicate, Duplicate in a new window, Rename, Reconnect and Close. Ctrl+Shift+D (⌘D) duplicates.
Production hosts’ tabs have an orange outline.
Copy and paste
- Right-click copies the selection, or pastes when nothing is selected (Settings › Terminal › Right-click to copy and paste).
- Ctrl+Shift+C / Ctrl+Shift+V (macOS ⌘C / ⌘V) also copy and paste.
- Copy on select in Settings copies as soon as you select text.
- Pasting something that looks like a private key, token or password asks first (Settings › Vault & security › Warn before pasting secrets).
Find
Ctrl+Shift+F (macOS ⌘F) searches the terminal’s output, including the scrollback.
Split panes
Ctrl+Shift+E (macOS ⌘E), or Split pane in the tab menu, opens a second terminal to the same server beside the current one. Split with another host… opens a different server. Panes are arranged in a grid. Click a pane to focus it; close it from its header or with Ctrl+Shift+W.
Broadcast input
In a tab with split panes, Ctrl+Shift+B (macOS ⌘B) sends what you type in one pane to every pane in that tab, so you can run the same command on several servers. Broadcasting panes have an amber border. Press it again to stop.
Text size
Ctrl+Shift+= and Ctrl+Shift+− (macOS ⌘= / ⌘−) make the text bigger or smaller; Ctrl+Shift+0 (⌘0) resets it. The default size is in Settings › Terminal.
Save output to a log file
- Save output to a log file… in the tab menu records the terminal’s output as plain text, without colors and control codes. A red dot marks tabs that are logging.
- Save every terminal session to a log file in the host editor (Advanced) logs every session to
that host into
Documents/Harbor Logs/<host>/. - With Mask secrets in session logs on (the default), tokens, passwords and private key blocks are hidden in the log.
Log files can contain sensitive output from your servers. Keep them somewhere safe and delete them when you no longer need them.
When the connection drops
If a session drops (network change, sleep, a server restart), Harbor reconnects after 1, 2, 5, 10 and then every 30 seconds, for about four minutes. The status bar counts down to the next attempt.
- Press Enter to try at once, or Esc (or stop in the status bar) to give up.
- Typing
exitor closing the tab isn’t a drop, and a refused login stops retrying. - Turn it off in Settings › General › Reconnect dropped sessions.
After it gives up, press Enter in the tab to reconnect.
Reopen tabs from last time
Harbor remembers each window’s tabs and split panes, including renamed tabs and open file panels. Settings › General › Reopen tabs from last time chooses whether it asks, always reopens them, or never does. Passwords typed when connecting are never saved, so you’re asked again.
Keep programs running with tmux
In the host editor (Advanced), Keep the shell in a tmux session named makes terminals attach to
that tmux session, or start it. Programs keep running on the server when the connection drops, and
you’re back in them after reconnecting. The server needs tmux installed; without it you get a
normal shell and a note saying so.
Agent forwarding
Forward my SSH agent in the host editor lets the server use the keys in your local SSH agent,
like ssh -A, for example to git pull from a private repository. Only turn this on for servers
you trust: while you’re connected, anyone with root on that server can use your agent to log in
elsewhere as you. Harbor warns when it’s on for a Production host.
The status bar
Under every session: connection state, latency (measured with SSH keepalives, so nothing runs on the server), the jump route, terminal size, encoding, and whether it’s logging or broadcasting.
Files and monitor beside the terminal
- Ctrl+Shift+O (macOS ⌘O): files panel on the same connection. See File transfer.
- Ctrl+Shift+G (macOS ⌘G): live server monitor. See Server info and monitor.
Why Ctrl+Shift?
On Windows and Linux, Harbor’s own shortcuts use Ctrl+Shift so that plain Ctrl keys (Ctrl+C to interrupt, Ctrl+W, Ctrl+R, Ctrl+D) go to the program on the server, as in any terminal.