FG
💻 Software

Grouping hosts in SSH Config

Fresh5 days ago
Mar 15, 20269448 views
Confidence Score0%
0%

Problem

Can I configure the hosts in my SSH config by groups? For example, I'd like to set a single same user to be used for one group of hosts and another one for another group of hosts. If it's not possible out of the box, I guess there might be tools that can write or manage your ssh_config through a co…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Grouping hosts in SSH Config

Low Risk

You should take a look at for all the details on this, but yes, you can do that by doing this in your ~/ssh_config: The * can also be used to do string matching for hosts

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment