gpt4 book ai didi

linux - 使用自定义端口和带有密码参数的私钥进行服务器到服务器的复制

转载 作者:太空宇宙 更新时间:2023-11-04 03:53:21 25 4
gpt4 key购买 nike

使用 scp 命令自定义端口和带密码参数的私钥将某些文件从服务器复制到服务器时会出现错误

命令就像

scp -i xxxxxxx.pem -P xxxxx /path/source-file.zip root@example.com:/path/to/destination/file.zip

错误信息

ssh: connect to host example.com port xxxxx: Connection timed out
lost connection

使用私钥(带有自定义端口和密码)连接 example.com 时工作正常。但当我们使用 scp 命令时不起作用。

最佳答案

这个语法对我不起作用。

所以我使用了替代方法,例如 wgetCURL

关于linux - 使用自定义端口和带有密码参数的私钥进行服务器到服务器的复制,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25566243/

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