GoogleCloudSDKを利用して、ローカルファイルをインスタンスにあげたいのですが、チュートリアル通りに進めるとエラーが出ます。
ローカル ファイル「file-1」を「us-central1-a」ゾーンの「my-instance」にコピーするには、次のコマンドを使用できます。
cmd
1gcloud compute scp ~/file-1 my-instance:~/remote-destination --zone us-central1-a
#実際に試したコマンドと起きたエラー:
C:\Users\user\AppData\Local\Google\Cloud SDK>gcloud compute scp C:\Users\user\Desktop\test.txt instance-1:~/remote-destination --zone us-west1-b pscp: unable to open ~/remote-destination: no such file or directory
また、~/remote-destination:を自分のインスタンス内のディレクトリ名に変えて実行すると、
C:\Users\user\AppData\Local\Google\Cloud SDK>gcloud compute scp C:\Users\user\Desktop\test.txt instance-1:/gcs --zone us-west1-b pscp: unable to open /gcs/test.txt: permission denied
権限がありませんエラーが出ました。
どうすればよいでしょうか?
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。