gcloud
Upload a local directory
gcloud compute scp --recurse /code/python/test VM_INSTANCE_NAME:/code/pythonYou can also specify specific username
gcloud compute scp --recurse /code/python/test USERNAME@VM_INSTANCE_NAME:/code/pythonUpload a file
gcloud compute scp --recurse /code/python/test/main.py VM_INSTANCE_NAME:/code/python/testWeb SSH
- Goto https://console.cloud.google.com/compute/instances
- Click
SSHof specific instance - At the SSH window, select
Gearicon on upper-right corner and selectUpload file
References: