Macos macssh:非法选项--J

Macos macssh:非法选项--J,macos,ssh,terminal,proxy,Macos,Ssh,Terminal,Proxy,我正在尝试使用ssh连接,需要使用-J。 它在Ubuntu上工作正常,但在mac上返回-非法选项--J与此命令连接 ssh -o ProxyCommand="ssh -W %h:%p Jumphost" FooServer 在这篇文章中找到“manual ssh mac”和“manual ssh ubuntu”的Hello google,找出它们的区别

我正在尝试使用ssh连接,需要使用-J。
它在Ubuntu上工作正常,但在mac上返回-
非法选项--J

与此命令连接

ssh -o ProxyCommand="ssh -W %h:%p Jumphost" FooServer
在这篇文章中找到“manual ssh mac”和“manual ssh ubuntu”的Hello google,找出它们的区别