
However, SSH public and private key authentication are recommended as a security best practice. For SSH authentication, usernames and passwords can be used. SSH handles the authentication on the destination host, and it moves the file in an encrypted tunnel provided by default with SSH. Upload a file to the VM scp file a file from the VM scp targetfileĪs examples, we move an Azure configuration file up to a VM and pull down a log file directory, both using SCP. It's built on top of SSH and included in the default shell of most Linux and Windows (10 and newer) installations. You also need an SCP client for your local computer. Moving files between your workstation and a VM, quickly and securely, is critical for managing your Azure infrastructure.įor this article, you need a VM deployed in Azure with SSH enabled. This article shows how to move files from your workstation up to an Azure VM, or from an Azure VM down to your workstation, using Secure Copy (SCP). Applies to: ✔️ Linux VMs ✔️ Windows VMs ✔️ Flexible scale sets
