【问题标题】:Download file to my computer using Git Bash?使用 Git Bash 将文件下载到我的计算机?
【发布时间】:2018-05-30 00:01:23
【问题描述】:

我与我的服务器建立 SSH 连接。

我需要在 AWS 上下载一个 zip 文件,但我不知道该怎么做。 我不知道必要的命令和 sintaxis。

顺便说一句,我正在使用 Windows 10,我必须使用 Git Bash 来完成。

问候

【问题讨论】:

  • 您可以使用scp。它非常简单scp <server-ip-or-name>:<file-path-on-the-server> <file-path-on-your-local-machine-where-you-want-to-save-it> 我使用这样的东西:scp ec2-xx-xx-xx-xxcompute-1.amazonaws.com:~/my-file-on-server ./ 它将我的文件保存在当前目录中
  • 当您在 Windows 上运行时,您可以安装 WinSCP。或者您可以安装 PuTTY,然后使用 pscp (ssh.com/ssh/putty/putty-manuals/0.68/Chapter5.html)。 WinSCP 更简单。

标签: windows git bash amazon-web-services ssh


【解决方案1】:

您可以在以下位置找到此答案 http://www.compciv.org/recipes/cli/downloading-with-curl/

如果该网站处于活动状态,请阅读那里的答案,以防我错过详细信息。否则:

使用 curl 命令并将文件输出到您当前的工作目录。

curl http://some.url --output some.file

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-04-26
    • 2019-09-20
    • 2017-08-30
    • 2019-07-03
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多