How To
Summary
This guide walks you through how to copy files or folders from your local machine to a virtual machine (VM) provisioned by IBM TechZone using SCP (Secure Copy Protocol). It includes step-by-step instructions.
Steps
Copying Files from your Local computer to VM via SCP What You’ll Need First SSH access to the VM (hostname/IP and username) scp installed (default on Linux/macOS; use PuTTY or PowerShell on Windows) Network connectivity and open SSH port (default: 22)
Step 1: Locate Your Local File Use your terminal to navigate to the directory containing the files you want to transfer
Step 2: Copy a Single File to the VM
myfile.txt – your local file
user@VM_IP – VM’s SSH credentials
/home/user/ – destination directory
Step 3: Copy a Directory Recursively To transfer a full folder and its contents
To transfer an entire directory:
Step 4: Use custom SSH port or identity key
If SSH listens on non-standard port (e.g., 2222):

If you use private key authentication:
Step 5: Verify transfer on the VM:
Login via SSH and list the files
Document Location
Worldwide
[{"Business Unit":{"code":"BU065","label":"Technical Support Services"},"Product":{"code":"SSNR6KN","label":"IBM Technology Zone"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"","Edition":""}]
Was this topic helpful?
Document Information
Modified date:
21 June 2025
UID
ibm17237399