hardgcloud

Securely copy files between a local machine and a Compute Engine instance over SSH

command

gcloud compute scp LOCAL_PATH INSTANCE_NAME:REMOTE_PATH --zone ZONE

also accepted

gcloud compute scpgcloud compute scp LOCAL_PATH INSTANCE_NAME:REMOTE_PATH

Command breakdown

Part of the Google Cloud CLI (gcloud) — Compute Engine category.

gcloudcomputescpLOCAL_PATHINSTANCE_NAME:REMOTE_PATH--zoneZONE
FlagPurpose
--zoneBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →