如何为一个特定主机禁用 ProxyCommand?

How to disable ProxyCommand for one particular host?

使用 OpenSSH,我已将 /etc/ssh/ssh_config 设置为 ProxyCommand,因此所有 SSH 连接都通过该代理。

/etc/ssh/ssh_config:

Host *
  ProxyCommand nc -X connect -x localhost:8111 %h %p

但是我想为一个特定的 SSH 主机禁用代理。

我已将以下内容添加到我的~/.ssh/config

Host ssh.example.org
  HostName ssh.example.org
  ProxyCommand ""

我应该在 ProxyCommand 中添加什么,这样它才不会只为该特定主机使用代理,但默认情况下仍然通过代理进行 SSH 连接?

解决方案是对应该在代理之外的主机使用ProxyCommand none

Host ssh.example.org
  HostName ssh.example.org
  ProxyCommand none