💻 Software
In your ssh config is it possible to have one host entry for multiple machines on the same domain
Fresh5 days ago
Mar 15, 20261159 viewsConfidence Score0%
0%
Problem
I'd like to be able to do something like So I can type something like Instead of having to type Right now I have separate entries for each one, but we have dozens of machines, so I'd rather have a default rather than have to duplicate everything so many times.
Error Output
Host *
HostName *.mydomain.com
...Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: In your ssh config is it possible to have one host entry for multiple machines on the same domain
Low Risk
Instead of doing this with ssh, use the /etc/resolv.conf file Add a line saying What this does is wherever you don't enter a full domain name, it will use this suffix to work out the full name, effectively appending to when you do .
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix