将文件下载到 Azure VM

Download files to Azure VM

我已经使用 Ubuntu 18.04 创建了一个 Azure VM。由于它不附带任何 GUI,因此我无法将本地计算机文件发送到 VM。

我正在寻找一种不需要任何 GUI 实例即可从我的本地计算机或 google 驱动器或任何方法下载文件的方法。

提前致谢。

您可以使用 Azure file share to upload files and map to your VM and if you are using any of the FTP method you can use any tool and upload files 使用相同的

如果您正在使用 SSH then it might be possible to use SFTP

SFTP 是 SSH 协议的扩展,除其他外,它允许您上传文件而无需 运行 FTP 服务器。有许多支持 SFTP 的 SSH 客户端,请参阅 - https://en.wikipedia.org/wiki/Comparison_of_SSH_clients#Technical.

我个人使用WinSCP或者Putty

Linux scp 命令是帮助将文件或目录从本地传输到远程服务器的标准工具,如果您使用 Linux 或 Mac 甚至 Windows 与 Git Bash。请参考下面的博客了解如何在命令行模式下使用它。

  1. The ‘SCP’ Command in Linux – The Easiest Way to Copy Securely
  2. scp Linux command
  3. SCP Command Examples - Linux / Unix Tutorials

如果你只是想使用 GUI 工具,你可以尝试 WinSCP for Windows 或 FileZilla with sftp protocol for cross-platform 或者这些答案用于 Ask Ubuntu 的线程https://askubuntu.com/questions/640744/how-can-i-connect-to-a-server-via-scp-in-lubuntu-15/640837#640837.