【发布时间】:2014-01-30 05:27:52
【问题描述】:
我知道如何通过 sftp 获取远程文件。
例如:
sftp root@10.0.0.1:/path/to/file.txt localfile.txt
如何将文件上传到远程服务器?
(我需要在我的 bash 脚本中使用这个命令。)
【问题讨论】:
-
sftp 无法上传文件。
-
scp /local/file.txt root@10.0.0.1:/remote/file.txt
-
参见*.com/a/16723151/2148773(“2016 年 2 月更新”部分)。
标签: linux bash file-upload command-line sftp