我想根据某些条件设置不同配置的 ssh 连接。别名中的许多参数都是相同的。有没有办法避免在每个别名中重复它们?
在下面的示例中,x 是变量并且y = 1
是常量。理想情况下,y 应定义一次。
Match host foo exec c1
x = 1
y = 1
Match host foo exec c2
x = 2
y = 1
# Some more `Match host foo` for foo on different conditions
Host foo
x = 42
y = 1