Copy files between two Google Cloud instances

后端 未结 6 2019
北恋
北恋 2020-12-29 09:19

I have two projects in Google Cloud and I need to copy files from an instance in one project to an instance in another project. I tried to using the \'gcloud compute copy-fi

6条回答
  •  渐次进展
    2020-12-29 09:46

    The most simple way to to this will be using 'scp' command and .pem file. Here's as example

    sudo scp -r -i your/path_to/.pem your_username@ip_address_of_instance:path/to/copy/file
    

提交回复
热议问题