【发布时间】:2012-01-28 18:23:16
【问题描述】:
在.ssh/config 中,我为给定域中的所有主机设置了RemoteForward:
Host *.[domain]
RemoteForward [remote-port] 127.0.0.1:[local-port]
如何为该域中的特定主机取消设置该参数(例如,git.[domain])?
【问题讨论】:
-
ssh_config手册页提到使用否定来排除某些主机,但仅适用于.ssh/authorized_keys中的键。在.ssh/config中尝试过类似的组合,但没有骰子 -
从手册页我希望
Host !git.[domain],*.[domain]做你想做的事。您尝试过哪些组合?