Macos SCP无法识别.ssh/config中的配置

Macos SCP无法识别.ssh/config中的配置,macos,ssh,zsh,scp,Macos,Ssh,Zsh,Scp,我已经配置了文件.ssh/config,以简化连接: Host MyHost HostName my.univ.edu User me Port 22 Host cluster HostName thecluster User me ProxyJump MyHost 当我使用ssh集群时,一切都很好。但是,scp命令不起作用: $ scp cluster:/path/to/m

我已经配置了文件
.ssh/config
,以简化连接:

Host MyHost
    HostName     my.univ.edu
    User         me
    Port         22

Host cluster
    HostName     thecluster
    User         me
    ProxyJump    MyHost
当我使用ssh集群时,一切都很好。但是,
scp
命令不起作用:

$ scp cluster:/path/to/my/file .
zsh: no matches found: cluster:/path/to/my/file

你知道为什么吗?

zsh似乎在这里做文件全球化,你能做到:

scp "cluster:/path/to/my/file" .

该错误似乎来自
zsh
,而不是
scp
。您的shell配置中是否有可能导致这种行为?我不知道,我还没有专门配置shell。有人提出了一个解决办法。