我在将文件复制到我的Google Compute Engine上遇到了困难。 我正在使用Google Compute Engine上的Ubuntu服务器。
我正在从我的OS X终端执行此操作,并且已经使用gcloud
进行了授权。
local:$ gcloud compute copy-files /Users/Bryan/Documents/Websites/gce/index.php example-instance:/var/www/html --zone us-central1-a
Warning: Permanently added '<IP>' (RSA) to the list of known hosts.
scp: /var/www/html/index.php: Permission denied
ERROR: (gcloud.compute.copy-files) [/usr/bin/scp] exited with return code [1].
gcloud compute --project "<PROJECT>" ssh --zone "us-central1-a" "<compute-name>"
。 - bryansudo
能让它工作吗? - BrockLee