背景

现在文件的上传或者下载,大家都可以通过一些工具,例如vscode,xftp进行实现。但是有时候,需要使用到scp的情况。这里记录一下使用SCP在跳板服务器中的上传情况。

scp -J [jump-user]@[jump-ip] [target-user]@[target-ip]:[source-file-path] [local-file-path]

在这里值得注意的是,source-file-path如果是文件夹则路径形式是./*,local-file-path会自动创建文件夹。

参考

SCP无跳板服务器的文件上传
SCP有跳板服务器的文件上传

posted on 2024-09-04 18:03  蔚蓝色の天空  阅读(1)  评论(0编辑  收藏  举报