GCP - Transfer files to Google Cloud VM instance

By xngo on April 26, 2020

I was trying to upload my files to my Google Cloud VM instance using the following command and I got the following error.

gcloud compute scp --recurse  instance-1:/var/www/html public
ERROR: (gcloud.compute.scp) Your platform does not support SSH.


Well, my operation system doesn't have SSH installed. So, I installed it with the following command.

apt-get install -y ssh

About the author

Xuan Ngo is the founder of OpenWritings.net. He currently lives in Montreal, Canada. He loves to write about programming and open source subjects.