gpt4 book ai didi

ssh - 将远程源文件复制到远程目标文件夹

转载 作者:行者123 更新时间:2023-12-02 14:29:37 25 4
gpt4 key购买 nike

我需要将文件从远程服务器复制到同一台远程服务器,但是带宽有限。我决定使用scp这样做。

scp -l 8000 myuser@myserver:/my/source/path/myfile.data myuser@myserver:/my/target/path/

所以现在我的问题是:文件流会从远程服务器传输到本地计算机,然后再返回到远程服务器吗?

最佳答案

scp man page:

 -3      Copies between two remote hosts are transferred through the
local host. Without this option the data is copied directly
between the two remote hosts. Note that this option disables
the progress meter.

因此,否,除非您指定 -3标志,否则数据将不会通过本地计算机传输。请参阅 this superuser post,以了解为什么您可能会这样做或不想这样做。

关于ssh - 将远程源文件复制到远程目标文件夹,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53525224/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com