【发布时间】:2017-04-14 02:54:17
【问题描述】:
我正在尝试设置 ~/.ssh/config 文件并希望使主机名可配置
ssh pe1-cl1-bo1 should resolve to perf1-client1.app.bo1.host.in
ssh pe1-c2-bo3 should resolve to perf1-client2.app.bo3.host.in
i.e
pe -> expands to perf
cl -> expands to client
bo -> remains as it s
我只想在我的 ~/.ssh/config 文件中添加一个条目
Host $1-$2-$3
Hostname $1.$2..$3
任何人都可以建议一种方法吗?我尝试使用ProxyCommand,但无法弄清楚如何使用它。
【问题讨论】:
标签: ssh openssh ssh-config