How to manage hundreds of SSH and RDP sessions without losing track
Short answer. Keep one source of truth for your hosts. Name them so a search for any part finds them, use folders for where a host is and a tag for which environment it belongs to, and write jump hosts down as settings rather than habits. Keep passwords out of the inventory, and treat a changed host key as a stop sign.
Nobody designs a session list with 600 entries. It grows. A few hosts in ~/.ssh/config, then a folder of PuTTY sessions somebody exported in 2019, then the RDP files for the Windows side, then a colleague's MobaXterm export with half the names in another language. Each piece made sense when it was added.
This guide is about getting that pile into a shape that still works at a thousand hosts, whatever tool you use. The examples use OpenSSH because everyone has it. The same rules apply in a GUI connection manager.
Pick one source of truth
The worst setup isn't a messy list. It's two tidy lists that disagree. Somebody moves a firewall to a new management address, updates the spreadsheet, forgets the SSH config, and the next person connects to the old address, which by now belongs to something else.
Decide which inventory wins and make everything else a copy of it:
- Text first.
~/.ssh/config(or a repository of config fragments) is the master; your GUI tool imports from it. Good for SSH-only teams who already review changes in git. - Manager first. The connection manager is the master; you export from it when you need a file. Better when the list includes RDP, VNC, serial and Telnet, which
ssh_configcan't describe. - Generated. At cloud scale, nobody types hosts in. A script writes the inventory from your CMDB or cloud API, and humans only add overrides.
Whichever you pick, write it down in one line at the top of the file or the team wiki. "Hosts come from X; edit there."
Name hosts so search finds them
Past a few hundred entries you stop browsing and start typing. Names should be built for that. A pattern that works for most teams is site, role, environment, number:
A few rules that save arguments later:
- Lower case, hyphens, no spaces. It survives every tool, shell and file name.
- Two-digit numbers (
01, not1), so02sorts before10. - No "new", "old", "test2" or a person's name. They're wrong within a year.
- Keep the real DNS name or address in the host field and the friendly name in the name field. Don't make the name do both jobs.
- Never put credentials or the account name into a session name. Names show up in screenshots, logs and window titles.
Folders for where, tags for what
Folders are a single hierarchy, so give them a single job. For most teams that's location: customer, then site, then maybe network zone. Environment cuts across all of that. A site has production and lab gear side by side, so make environment a tag (PROD, STG, LAB) rather than a folder level.
Three levels of folders is plenty. If you need a fourth, the names aren't carrying enough information. Use favourites and the recent list for the twenty hosts you touch every day, and stop rearranging the tree to keep them on top.

Split a long ssh_config with Include
OpenSSH has read other files with Include since version 7.3, released on 1 August 2016 [1]. Relative paths are taken from ~/.ssh, and globs work [2]. One file per site or team keeps diffs small:
# ~/.ssh/config
Include config.d/*.conf
# Defaults go last: for each option, ssh uses the first value it finds.
Host *
ServerAliveInterval 30
IdentitiesOnly yes
# ~/.ssh/config.d/20-ams1.conf
Host ams1-*
User admin
ProxyJump ams1-bastion
Two details catch people. Put Include at the top, outside any Host block: inside one, the included file only applies to that block. And keep Host * at the bottom. OpenSSH takes the first value it finds for each option, so a catch-all at the top silently beats every specific setting below it [2]. Number the files (10-bastions.conf, 20-ams1.conf) so the order is something you chose.
Make jump hosts part of the session
If reaching a host means "SSH to the bastion first, then SSH again", that knowledge lives in someone's muscle memory. Write it into the session instead. OpenSSH's ProxyJump, also from 7.3, takes one or more jump hosts, separated by commas and visited in order [2]:
ssh -J ops@ams1-bastion admin@ams1-fw-prod-01
This is better than SSHing to the bastion and typing ssh again, for three reasons. Your private key never has to live on the bastion. Your laptop checks the target's host key itself. And the target name is resolved on the bastion's side, so internal DNS names work. Agent forwarding (-A) is the older way to get the second hop, and it lets anyone with root on the bastion use your agent while you're connected. Use it only when you have to.
Treat a changed host key as a stop sign
Sooner or later you'll see this:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
The usual reflex is ssh-keygen -R hostname and reconnect. Most of the time the cause is boring: the box was reinstalled, or the address was reused for a new VM. But "most of the time" is the problem. Before you remove the old key, check the new fingerprint some other way: on the console, in the hypervisor, or from the colleague who rebuilt it. On the host, ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub prints it.
For OpenSSH, StrictHostKeyChecking accept-new is a reasonable setting for automation: it saves new keys and still refuses changed ones [2]. StrictHostKeyChecking no lets a changed key through, so keep it out of anything that touches production.
Keep secrets out of the inventory
The inventory should be boring enough to paste into a ticket. That means no passwords in it, in any form. Use keys with an agent where you can. Where you need passwords, keep them in the OS keychain or a password manager and let the session point at them.
Shared accounts deserve a named credential that many sessions reference, so a password rotation is one edit, not three hundred. Microsoft's Remote Desktop Connection Manager has done this for years with credential profiles [3]; look for the same idea in whatever you use.
Mark production so you can't miss it
The classic mistake isn't exotic. You open twelve tabs in the morning, and by the afternoon you type a restart into the one you thought was staging. A red tab helps, until you're colour-blind, or the screenshot is greyscale, or there are six red tabs.
- Put the environment in words where your eyes are: the tab title, the prompt, the window title.
- Make pastes into production ask first, at least for multi-line pastes.
- Close production tabs when you're done. An idle PROD tab is just a trap with a timer.

A layout that holds up at a thousand hosts
| Part | Recommendation | Example |
|---|---|---|
| Source of truth | One inventory wins; everything else is generated or imported from it | "Hosts come from the CMDB export; edit there" |
| Names | Site, role, environment, number; lower case and hyphens | fra2-db-stg-03 |
| Folders | Location only, at most three levels | Customer A / FRA2 / DMZ |
| Environment | A tag shown in words, not a folder | PROD, STG, LAB |
| Jump hosts | A setting of the session or folder, never a manual second hop | ProxyJump ams1-bastion |
| Credentials | Keys and agent first; passwords in the keychain, referenced by name | "lab-admin" used by 140 sessions |
| Host keys | Changed key stops the connection; verify the new fingerprint out of band | StrictHostKeyChecking accept-new |
| Clean-up | Once a quarter, delete what nobody connected to | Decommissioned VMs, old lab ranges |
How common tools handle folders, imports and passwords
The rules above work in any tool, but tools make some of them easy and others awkward. Before you commit a thousand hosts to one, check three things: how it organises the list, how hosts get in and out, and where it keeps passwords. This is what each vendor's own pages say.
Read on the dates given in the Sources. A dash means the pages we read don't say, not that the tool lacks it.
| Tool | Organising the list | Getting hosts in and out | Passwords and credentials |
|---|---|---|---|
| PuTTY | Saved sessions in the Windows Registry, or ~/.putty on Unix [4]; easier handling of many saved sessions is on its wishlist [5] | On Windows, sessions live under one Registry key [6], which reg export saves to a file | Doesn't remember passwords, on purpose [4] |
| MobaXterm | Sessions in folders; the free Home edition keeps at most 12 [7] | A .mxtsessions export or MobaXterm.ini holds them (what MyXterm's importer reads) | Saved passwords, protected by a master password [7] |
| SecureCRT | Sessions in folders, one file each in its Config folder | An XML export of the settings (what MyXterm's importer reads) | - |
| Xshell | Folder and tree view in the Sessions dialog [8] | Session import and export [8] | Key wizard with key import and export, and the Xagent agent [8] |
| Termius | - | Sync across mobile and desktop on the Pro plan [9] | A local vault on the free plan; a personal cloud vault on Pro and team vaults on Team and Business, described as end-to-end encrypted [9] |
| Royal TS / TSX | Documents with folders, interchangeable between its Windows, macOS and mobile apps [10] | Share connection lists without personal credentials through a network share, cloud storage or Royal Server [10] | Built-in credentials, inherited from folders; LastPass and KeePass integration [10] |
| Remote Desktop Manager | Shared connections with access controls for teams [11] | - | Built-in password management; KeePass, Bitwarden, 1Password, Keeper and more [11] |
| mRemoteNG | - | Import from its XML or CSV files, Active Directory or an nmap port scan; export to XML or CSV [12] | For SSH it passes the password on the command line that starts its bundled PuTTY, per its known-issues page [13] |
| Tabby | An SSH connection manager with automatic jump hosts [14] | - | An integrated encrypted container for SSH secrets and configuration [14] |
| WindTerm | - | No importer listed in its README [15] | - |
| electerm | Bookmarks [16] | Sync of bookmarks and settings to a GitHub or Gitee secret gist, WebDAV, a custom server or electerm cloud [16] | - |
| Remmina | Connection profiles for RDP, VNC, SPICE, X2Go and SSH, on Linux [17] | - | - |
| Remote Desktop Connection Manager | Groups of Windows servers, RDP only [3] | - | Credential profiles shared by many servers; stored passwords encrypted with your Windows credentials or a certificate [3] |
Two patterns are worth noticing. Team tools (Royal TS, Remote Desktop Manager, Termius on its paid plans) solve the "one source of truth" problem by putting the inventory on a server or a shared file; single-user tools leave it to you. And the tools split cleanly on secrets: some store none (PuTTY), some keep their own encrypted store, and some hand the job to a password manager. Whichever you use, check whether a moved inventory comes with its passwords. Usually it shouldn't. See the full comparison for platforms, prices and licences.
How MyXterm handles this
MyXterm is a free, open-source (Apache-2.0) connection manager and terminal for macOS, Linux and Windows. v0.1.0 is the first stable release. macOS builds are signed and notarized; Windows and Linux builds are not code-signed yet. What exists for the ideas above:
- A session tree with folders, favourites and environment tags; bulk edit and folder defaults are not done yet partial SESS-002.
- Import of
~/.ssh/config(Host, HostName, User, Port, ProxyJump, IdentityFile, Include) partial SSH-011, and of MobaXterm, PuTTY and SecureCRT sessions partial SESS-005 SESS-006 SESS-008. - Jump host chains with each hop's host key checked partial SSH-009; a changed host key is a hard stop partial SSH-008.
- Named credentials shared by many sessions partial VAULT-101, stored in the OS keychain partial VAULT-001.
- An identity strip on every pane and a paste guard that asks on PROD before any paste with a line break partial TERM-017 TERM-009.
- Last-connected date and result in the tree, to find dead entries planned SESS-112.
- Importers for Remote Desktop Manager and mRemoteNG planned SESS-107, and CSV and JSON planned SESS-007. There is no importer for Xshell, Termius, Tabby, WindTerm, electerm or Remmina; bring those hosts over through
~/.ssh/configor Quick connect.
For what a connection manager is in the first place, see What is a connection manager? Network devices bring their own problems: serial, Telnet and bulk commands.
FAQ
How do I organise hundreds of SSH connections?
Pick one inventory as the source of truth, name hosts by site, role, environment and number, use folders for location and a tag for the environment, and store jump hosts and credentials as settings of each session or folder.
Should I use ~/.ssh/config or a GUI connection manager?
Use ~/.ssh/config if your hosts are all SSH and your team reviews changes as text. Use a connection manager when the list includes RDP, VNC, serial or Telnet, or when people need search, environment marking and imports. Many teams keep the config file as the master and import it.
How do I connect through a jump host?
Use ProxyJump: ssh -J user@bastion user@target on the command line, or a ProxyJump line in ~/.ssh/config. Your laptop then checks both host keys and your private key never has to be copied to the bastion.
What should I do when SSH says the remote host identification has changed?
Stop and check the new fingerprint another way, for example on the console or with the person who rebuilt the host. Only then remove the old entry with ssh-keygen -R and connect again.
Where should SSH passwords be stored?
Not in the session list. Use keys with an agent where you can, and keep passwords in the operating system keychain or a password manager, referenced by name from the sessions that need them.
Sources
Sources 1 to 3 read on 1 December 2026; the others on the date given with each. MyXterm statuses are from features.toml on the same day; partial
means it works in the app but does not meet its full acceptance criteria yet.
- OpenSSH 7.3 release notes (Include, ProxyJump): openssh.org/txt/release-7.3
- OpenSSH
ssh_config(5): man.openbsd.org/ssh_config - Remote Desktop Connection Manager, Microsoft Sysinternals: learn.microsoft.com/en-us/sysinternals/downloads/rdcman
- PuTTY FAQ, A.2.2 (passwords) and A.5.2 (where data is stored), read 28 November 2026: chiark.greenend.org.uk/~sgtatham/putty/faq.html
- PuTTY wishlist (many-sessions), read 28 November 2026: chiark.greenend.org.uk/~sgtatham/putty/wishlist
- PuTTY manual, §4.1.2 (saved sessions in the Registry), read 28 November 2026: the.earth.li/~sgtatham/putty/latest/htmldoc/Chapter4.html
- MobaXterm download and editions, read 27 November 2026: mobaxterm.mobatek.net/download.html
- Xshell features and specs, read 28 November 2026: netsarang.com/en/xshell-all-features
- Termius home and pricing pages, read 28 November 2026: termius.com, termius.com/pricing
- Royal TS for Windows, features and editions, read 28 November 2026: royalapps.com/ts/win/features
- Remote Desktop Manager product page, read 28 November 2026: devolutions.net/remote-desktop-manager
- mRemoteNG documentation, import and export, read 1 December 2026: mremoteng.readthedocs.io/en/latest/user_interface/import_export.html
- mRemoteNG documentation, known issues, read 1 December 2026: mremoteng.readthedocs.io/en/latest/known_issues.html
- Tabby repository and README, read 2 December 2026: github.com/Eugeny/tabby
- WindTerm repository and README, read 2 December 2026: github.com/kingToolbox/WindTerm
- electerm repository and README, read 1 December 2026: github.com/electerm/electerm
- Remmina repository and README, read 1 December 2026: gitlab.com/Remmina/Remmina
Last updated