IBM Support

How do i copy and paste content from local laptop to VM instance that tech zone has created

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
image-20250619213751-1
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:
image-20250619214538-2

Step 4: Use custom SSH port or identity key
If SSH listens on non-standard port (e.g., 2222):
image-20250619214850-3
 
If you use private key authentication:
image-20250619215232-4

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":""}]

Document Information

Modified date:
21 June 2025

UID

ibm17237399