How do I download files from my linux virtual machine to my linux local machine

chungmao 1 Reputation point
2021-11-11T05:35:18.297+00:00

I deployed a VM on azure, its OS is Linux Ubuntu 20.04
I also have my local machine, it is a laptop that runs Linux Ubuntu 21.10
I host a Minecraft server on the VM.
Now, I would like to download all the files on my VM to my local machine.
How do I do that?
I've researched for quite a large amount of time but I still can't understand, so if you know how, please give me a step by step walk through, I would really appreciate it.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,103 questions
Azure Disk Storage
Azure Disk Storage
A high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.
572 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sumarigo-MSFT 43,411 Reputation points Microsoft Employee
    2021-11-11T15:29:54.143+00:00

    @chungmao This article shows how to move files from your workstation up to an Azure Linux VM, or from an Azure Linux VM down to your workstation, using Secure Copy (SCP). Moving files between your workstation and a Linux VM, quickly and securely, is critical for managing your Azure infrastructure.
    https://learn.microsoft.com/en-us/azure/virtual-machines/linux/copy-files-to-linux-vm-using-scp

    Linux scp command is a standard tool to help transfering files or directories from local to remote server, if you are using Linux or Mac or even Windows with Git Bash. Please refer to the blogs below to know how to use it under command line mode.

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

    If you just want to use GUI tools, you can try WinSCP for Windows or FileZilla with sftp protocol for cross-platform or these answers for the thread of Ask Ubuntu https://askubuntu.com/questions/640744/how-can-i-connect-to-a-server-via-scp-in-lubuntu-15/640837#640837.

    If you still find any difficulties, please let me know I would like to work closer on this issue.

    Please let us know if you have any further queries. I’m happy to assist you further.

    ----------

    Please do not forget to 148556-image.png and 148604-image.pngwherever the information provided helps you, this can be beneficial to other community members.

    Disclaimer: This response contains a reference to a third-party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there.
    There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

    1 person found this answer helpful.
    0 comments No comments