Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
    • Cloud Interconnect
    • Cloud Backup
    • Cloud Registry
    • Yandex AI Studio
    • Compute Cloud
    • Object Storage
    • Managed Service for Kubernetes®
    • Yandex BareMetal
    • Smart Web Security
    • Security Deck
    • Managed Service for PostgreSQL
    • Managed Service for ClickHouse®
    • Monium
    • Cloud CDN
    • Network Load Balancer
    • Virtual Private Cloud
    • Cloud DNS
    • Application Load Balancer
    • Yandex Cloud Video
    • Stackland
    • Yandex Cloud Router
    • Yandex Managed Service for Trino
    • Managed Service for MySQL®
    • Managed Service for Valkey™
    • Managed Service for Apache Spark™
    • Yandex StoreDoc
    • Managed Service for OpenSearch
    • Managed Service for Apache Kafka®
    • Data Transfer
    • Yandex MPP Analytics Engine for PostgreSQL
    • Yandex Managed Service for Apache Airflow®
    • Data Processing
    • Yandex MetaData Hub
    • Managed Service for YDB
    • Managed Service for Sharded PostgreSQL
    • Managed Service for YTsaurus
    • Yandex WebSQL
    • DataLens
    • Yandex Search API
    • SpeechSense
    • SpeechKit
    • DataSphere
    • Vision OCR
    • Translate
    • Yandex Identity Hub
    • Key Management Service
    • Certificate Manager
    • Yandex Lockbox
    • Audit Trails
    • SmartCaptcha
    • Cloud Desktop
    • SourceCraft Code Assistant
    • Container Registry
    • Managed Service for GitLab
    • Managed Service for Prometheus®
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Message Queue
    • Serverless Integrations
    • IoT Core
    • Data Streams
    • Serverless Containers
    • Cloud Notification Service
    • Yandex Query
    • Identity and Access Management
    • Yandex Cloud Console
    • Resource Manager
    • Yandex Cloud Billing
    • Yandex Cloud Quota Manager
    • Cloud Apps
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex Compute Cloud
    • All guides
      • Connecting to a VM over SSH
      • Connecting to a VM over SSH using Cloud Shell
      • Exchanging files with VMs
      • Connecting to a VM via RDP
      • Connecting to a VM via PowerShell
      • Using Yandex Cloud from within a VM
      • Installing NVIDIA drivers
      • Recovering access to a VM
    • Enabling a software-accelerated network
    • Viewing operations on service resources
    • Viewing metrics in Monitoring
    • NVIDIA driver update guide
  • Yandex Container Solution
  • Access management
  • Pricing policy
  • Terraform reference
  • Metrics Monitoring
  • Audit Trails events
  • Release notes

In this article:

  • Exchanging files via SCP
  • Exchanging files via SFTP
  • Exchanging files using client applications
  1. Step-by-step guides
  2. Using a VM
  3. Exchanging files with VMs

Exchanging files with a Linux VM

Written by
Yandex Cloud
Updated at February 12, 2025
View in Markdown
  • Exchanging files via SCP
  • Exchanging files via SFTP
  • Exchanging files using client applications

We recommend using SCP and SFTP for exchanging files with a Linux VM.

Both protocols use SSH tunneling for TCP connections to encrypt file transfers, delivering the same security and authentication level as SSH.

Files are transferred using the same key pair as the one used for connecting to a Linux VM via SSH.

Exchanging files via SCPExchanging files via SCP

To transfer a file named file1 from a local folder to a VM folder, run this command:

scp file1 <username>@<VM_IP_address>:<absolute_path_to_VM_folder>

To copy the file under a different name, specify a new file name in the destination address. For example, to save file1 to a remote folder as file1.txt, run this command:

scp file1 <username>@<VM_IP_address>:<absolute_path_to_VM_folder>/file1.txt

To copy the entire folder contents, use the -r key before the folder name:

scp -r <local_folder> <uername>@<VM_IP_address>:<absolute_path_to_VM_folder>

To change the file exchange direction, specify the remote address before the local one. For example, to download a file named file2.txt to your local computer, run this command:

scp <username>@server_ip:<absolute_path_to_VM_folder>/file2.txt <local_folder>

Exchanging files via SFTPExchanging files via SFTP

To use SFTP tools, establish a connection to a remote VM. To do this, run the following command:

sftp <username>@<VM_IP_address>

This command will switch the terminal to interactive mode on the remote server. Go to the folder you need on the remote VM by running this command:

cd <absolute_path_to_VM_folder>

To upload a file from your local computer to the selected folder on the remote VM, run this command:

put <path_to_local_computer_file>

To download a file from a remote VM, run this command:

get <path_to_VM_file>

To copy the entire folder, use the -r key in the put and get commands. For example, to copy all files from a local folder to a remote VM, run this command:

put -r <path_to_local_computer_folder>

Note

To copy files, the user must have write permissions for the folder on the destination server.

Exchanging files using client applicationsExchanging files using client applications

You can use the following client applications to exchange files:

  • WinSCP with SCP and SFTP support.
  • Filezilla with SFTP support.

Was the article helpful?

Previous
Connecting to a VM over SSH using Cloud Shell
Next
Connecting to a VM via RDP
© 2026 Direct Cursus Technology L.L.C.