Transfer files from GCP VM to another

Published on 03 Aug 2018 , edited on 22 Mar 2019

First, logon to the instance to move the files from and authenticate
gcloud auth login

Next run this command, on first try it will setup SSH keypairs and all
gcloud compute scp file.ext [instancename]:/usr/share/nginx/html

Development

Everything web development related, rants, snippets, tutorials, quests; it’s all there.

All categories

All tags

All posts