(no title)
cholmon | 2 years ago
# in ~/.ssh/config
Include config.d/*.conf
# in ~/.ssh/config.d/work.conf
host work
hostname myoffice.example.com
user myuser
# in ~/.ssh/config.d/client1.conf
host client1.dev
hostname dev.client.example.net
user someuser
host client1.prod
hostname prod.client.example.net
user someuser
sureglymop|2 years ago
For example, add `host *_work ` and then some stiff that is the same for all work hosts like host1_work.
labawi|2 years ago