
The config file can be generated for one specific virtual machine using these commands: Using VM IP address $ az ssh vm -resource-group myResourceGroup -name myVM You are already familiar with login with AD using the command below:

If you login to your Azure virtual machine using Azure Active Directory (AD), you need to create a temporary config file to use with SCP (thanks to Nigel Sim post). $ scp :target-directory/file /local-directory If you created your key pairs with a passphrase, you will be prompted to enter the passphrase. However, if you are using SSH key pair authentication, SSH will authenticate you using your private key and there is no need to enter your password (best practice). If you are using username and password for SSH authentication, you will be prompted to enter your password. You need a SCP client which is included in Bash shell of most Linux distributions and Mac computers and PowerShell. It uses the same authentication and security as SSH. SCP is a common tool for secure copy files between a local and remote machine. If you are using Azure virtual machines and login with Azure Active Directory, you will get more instructions on how to connect. The last method is specific to Microsoft Azure and requires a bit of setup by Azure administrator as well as installing some software. The first three methods can be used to access any virtual machines that you have ssh connection. We decided to write down four ways to achieve this goal. In this post, we will not go through performance considerations for each tool/method.

There are no requirements for retaining the permissions on the files being transferred.

We are referring to Linux virtual machines in this post unless we explicitly mention Windows virtual machines as well. They also need to download some result files or data to their local machines.

There is a common need for our researchers to securely transfer small or large files to virtual machines for various purposes.
