I couldn't transfer a file to my VM instance

Tiger300 asked:

I was following along with this tutorial:
https://cloud.google.com/community/tutorials/setting-up-lamp

and I wanted to upload a php file to my instance to run, using the following command:

gcloud compute scp [LOCAL_FILE_PATH] lamp-tutorial:/var/www/html

but I got the following:

enter image description here

What went wrong? And how could I transfer files to my instance?

My answer:


You have to run these commands on your local computer, not the Cloud Shell, or the remote virtual machine.


View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.