Documentation Workbench Updated

Terminal

A terminal in a tab of PluggedDesk - a shell on your computer, SSH with a jump host and forwarded ports, or a file transfer - beside your remote desktops.

What it is

PluggedDesk can show a terminal in a tab, next to your sessions: a shell on your own computer, an SSH connection to a computer of your workspace, or a file transfer (SFTP) to it. A terminal's tab behaves like a session's: split it to the right or below, drag it into another group or a window of its own, pin it. See Tabs and groups.

Terminals in tabs need PluggedDesk 0.10.4 or later, on Windows 10 (1809) or Windows 11.

Opening one

  • Terminal › New Terminal opens PowerShell on your computer. Terminal › New Terminal With lists the shells PluggedDesk found: PowerShell, Windows PowerShell, Command Prompt, each WSL distribution, Git Bash, Cygwin and MSYS2, whichever are installed in a place only administrators and you can change (see below).
  • For a computer of your workspace: right-click it and choose Launch Terminal… (from the Terminal extension), or select it and choose Terminal › Terminal for the Selected Computer…. PluggedDesk asks in its own dialog:
    • SSH to the computer, with the user name and the port;
    • File transfer (SFTP) to it;
    • Local terminal, with the shell of your choice;
    • where it opens: in a tab of PluggedDesk, or in a window of its own.

The dialog always shows the exact program and arguments that will run. Nothing starts until you choose Launch.

Jump host, key and forwarded ports

Under Jump host, key and forwarded ports in the same dialog:

Option What to write What it does
Jump host user@bastion:22 (the user and the port are optional) Reaches the computer through another one
Key file The private key's full path, or use Browse Offers that key, and only that key
Forwarded ports 13389:10.0.0.5:3389, several separated by spaces Local port 13389 leads to 10.0.0.5:3389 as the far side sees it
Keep an idle connection alive Asks the server for a sign of life every 30 seconds
Let that computer use my SSH agent Agent forwarding. Whoever controls that computer can use your keys while you are connected: leave it off unless you need it

A forwarded port listens on this computer only (127.0.0.1). To reach a remote desktop that is only reachable through SSH, forward a local port to its port 3389 and connect PluggedDesk to 127.0.0.1 on that local port.

SSH and SFTP are Windows' own OpenSSH. Your known_hosts, your ~/.ssh/config and your SSH agent work as they do in any terminal, and PluggedDesk never asks for, sees or keeps an SSH password or key: OpenSSH asks in the terminal.

Why Cygwin or MSYS2 may not be listed

PluggedDesk starts a shell only from a folder that nobody but administrators, Windows and you can change. PowerShell and Git for Windows in C:\Program Files are in such a folder. Cygwin and MSYS2 install into C:\cygwin64 and C:\msys64, and a folder made directly on the system drive is one that, by Windows' default, every account that signs in to the computer may write to. On a computer other people also use, one of them could put a program there that you would then start, so PluggedDesk does not offer a shell from such a folder, and does not start one remembered from before. The same rule applies to a PowerShell 7 or a Git for Windows installed outside Program Files.

You can still use them: open a PowerShell terminal and start the shell by its path (for MSYS2, C:\msys64\usr\bin\bash.exe --login -i); that is your own command. An administrator who wants the shell listed can remove the rights of other accounts from its folder.

A terminal on a PluggedHub device opens from the PluggedHub view or its dashboard, through PluggedHub's relay: see PluggedHub.

Working in it

While you type in a terminal, the keys are the program's: Ctrl+W deletes a word in the shell and does not close the tab. PluggedDesk keeps these:

Keys What they do
Ctrl+Shift+C / V Copy / paste (Ctrl+C copies when text is selected; Ctrl+V pastes)
Ctrl+Shift+F Find in what the terminal showed. Enter goes to older output, Shift+Enter to newer
Ctrl+Shift+A Select everything
Ctrl+Shift+K Clear the scrollback
Ctrl+Shift+T Another terminal like this one
Alt+Shift++ / - Another terminal to the right / below
Ctrl+Shift+W Close the tab
Ctrl+Tab, Ctrl+Shift+Tab Next / previous tab
Shift+Page Up / Page Down Scroll back / forward
Ctrl++ / - / 0, Ctrl+wheel Larger / smaller text, and back to normal
Ctrl+Alt+Home Give the keyboard back to PluggedDesk; Enter takes it again

With the mouse: drag to select, double-click for a word, triple-click for a row, Alt+drag for a rectangle. The right button opens the terminal's menu.

  • Pasting several lines asks first. In a shell each line runs as a command as soon as it arrives. You can turn the question off under Terminal › Ask Before Pasting Several Lines.
  • Links. Hold Ctrl and click a web address. PluggedDesk shows you the address exactly as your browser will get it and asks before it opens it: the text in a terminal comes from the program, which may not be yours. An address with characters that could make it look like another site's is not treated as a link.
  • The tab shows what the program calls itself, a percentage while a command reports progress, and a dot when it wrote something while another tab was in front.
  • Tell Me When the Command Ends (the terminal's menu) puts a line on the status bar when the running command finishes.

A program that ends normally closes its tab. One that ends with an error stays, so that you can read what it said; Enter starts it again.

Settings

Under Terminal in the menu bar: the colour scheme (it follows PluggedDesk's colour theme unless you choose one: Campbell, One Half, Solarized, Tango, Gruvbox, Dracula), the text size, Copy on Select and Right Button Pastes (as in PuTTY), the question before a paste of several lines, and the mark on a tab when a program rings the bell (it never makes a sound).

What PluggedDesk remembers, and what it does not

A terminal's tab comes back the next time, without its program: press Enter in it to start it again. PluggedDesk remembers what the tab runs (the shell, or the computer, user, port and options). It keeps nothing a terminal showed: no scrollback, no title, and no log or problem report contains terminal text.

Safety

  • A terminal runs with your rights: what is typed in it runs as you. PluggedDesk does not open one while it runs as administrator.
  • Every program is started by its full path from Windows' own folders or the folder its installer registered, never from PATH.
  • No extension ever sees a terminal: the Terminal extension only tells PluggedDesk which computer you chose.
  • A program cannot read or write your clipboard, read the tab's title back, or raise notifications through the terminal.

Not available yet

A serial terminal, Telnet, Zmodem, X11 forwarding, and a terminal on macOS or Linux.