SCP无法识别来自.sshconfig的配置。

问题描述 投票:0回答:1

我已经配置好了文件 .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

知道为什么吗?

macos ssh scp
1个回答
1
投票

zsh好像在这里做文件globbing,你可以做:

scp "cluster:/path/to/my/file" .
© www.soinside.com 2019 - 2024. All rights reserved.