Use case: server fleets
Manage multiple servers over SSH, hundreds of them
Last updated
When you manage multiple servers over SSH for long enough, the list stops fitting anywhere: a few hundred hosts across prod, staging and dev, VMs on two hypervisors, the nodes under your Kubernetes clusters, and a rack of bare metal behind a bastion.
TerminalLynx is built for that list. Tag servers by environment, cluster and role, find any one of them in a few keystrokes, and run the same command on every server you mean, with the result for each one.
Slice the fleet with tags, not folders
A folder tree makes you pick one way to sort your servers. Tags let a server be in production, in the Frankfurt data center and in the database tier all at once, and the list groups by whichever one you need right now.
The filter bar and the Ctrl+K palette share one syntax, so the same query that finds servers also picks the hosts for a command:
| env:prod role:web | Every production web server |
| cluster:prod-east role:worker | The worker nodes of one cluster |
| site:fra1 -tag:legacy | One data center, without the boxes you're retiring |
| host:10.20.* | A subnet, with * as a wildcard |
| is:untagged | What nobody has tagged yet |
Got hundreds of hosts in ~/.ssh/config already? Import it: hosts, users, ports, keys, jump hosts and forwards come across, with a preview first. The full filter syntax is on the features page.
(opens full size)Whatever your fleet looks like
Linux fleets across dev, staging and prod
Tag each server with what it is, not where it sits in a folder: env:prod, role:db, site:nyc3. Group the list by env and you get prod, staging and dev as sections; switch to group by role and the same servers regroup by what they do.
Save the views you open every day, like "Prod databases" or "Staging web", as Smart Views in the sidebar.
VMs on vSphere or Proxmox
Hundreds of VMs, most of them named like each other. Add a tag for the host or cluster they run on (hv:esx-03, pve:node2) and the owning team, and the palette finds the right one in a few letters.
TerminalLynx doesn't read your vCenter or Proxmox inventory. Import your ~/.ssh/config, or add the VMs once, select them all and tag them in one go.
Cluster nodes, such as Ubuntu hosts under Rancher
The Linux machines under a Kubernetes cluster still need patching, rebooting and the odd look at a log. Tag them by cluster and role (cluster:prod-east, role:etcd, role:control-plane, role:worker) and one filter gives you exactly the nodes you mean.
Then patch them as a rolling update: run the snippet below on one cluster's workers, one node at a time, and stop at the first one that fails.
Bare metal behind a bastion
Make the bastion a connection of its own and set it as the jump host for everything behind it. Chain as many hops as you need; every hop's host key is checked.
Save a local port forward with a server to reach its management web page through the same hops, without opening another tunnel by hand.
Run a command on multiple servers, and see every result
Save the command once as a snippet. Pick the servers with a filter, set how many run at once and a time limit, and choose whether to stop at the first failure. Each server gets its own status, exit code and full output.
- Compare groups the servers that printed the same thing, so the three nodes on an old kernel stand out from the other forty.
- Retry failed runs it again on just the servers that failed.
- sudo: run the whole snippet as root. Each server gets only its own sudo password, and only when its sudo asks.
- A server that needs a decision, like a host key you haven't trusted yet, is flagged without holding up the others.
This is different from typing into every open terminal at once: nothing depends on which tabs are open, and you get a result for every server, not a wall of scrolling shells. More about snippets.
apt-get update DEBIAN_FRONTEND=noninteractive apt-get -y upgrade if [ -f /var/run/reboot-required ]; then echo "reboot required" fi
- Run on
- cluster:prod-east role:worker
- Run as
- Root, via sudo
- At once
- 1 server
- On failure
- Stop, and leave the rest untouched
(opens full size)SSH into multiple servers at once, in tabs
Ctrl+K, a few letters, Enter: each server opens in its own terminal tab, through its jump hosts, with SFTP and port forwards on the same login. Open the next one the same way, and switch between them with Ctrl+Tab. Or press Shift+Enter to open one in your own terminal instead. To act on a whole selection, select the servers and choose Run snippet.
Host keys are checked on every hop, with clear warnings when one changes. In a team, a host key trusted once is trusted by everyone, so the on-call engineer at 3 a.m. isn't the first to see a new server's fingerprint.
(opens full size)The same fleet for the whole on-call rotation
Put the fleet in a team workspace and everyone on call has the same servers, tags, jump hosts and snippets, synced directly between their devices with no cloud in the middle. Readers can connect and run snippets but change nothing; an Admin approves an Editor's change to a snippet before anyone can run it.
See how to share SSH servers with a team, and what happens when someone leaves.
What it costs
The Free plan covers 25 connections and runs a snippet on 5 servers at a time, at home or at work: enough to try it on a corner of your fleet. A fleet needs Pro, $69 once or $5 a month, with no limit on connections or on the servers a snippet runs on. See pricing.
Try it on your own fleet
No account to create. Import your ~/.ssh/config, tag a few hundred servers in a minute, and run your first snippet.
TerminalLynx