我已经配置好了文件 .ssh/config
以使连接更容易。
Host MyHost
HostName my.univ.edu
User me
Port 22
Host cluster
HostName thecluster
User me
ProxyJump MyHost
当我做 ssh cluster
一切都很顺利。但是 scp
命令不工作。
$ scp cluster:/path/to/my/file .
zsh: no matches found: cluster:/path/to/my/file
知道为什么吗?
zsh好像在这里做文件globbing,你可以做:
scp "cluster:/path/to/my/file" .