GCP 프로젝트에서 Google Cloud VM 인스턴스로 파일 복사

GCP 프로젝트에서 Google Cloud VM 인스턴스로 파일 복사

내 홈 디렉토리의 Google 프로젝트에 파일을 업로드했습니다.

내 디렉터리의 파일

Sentiment-instance-1이라는 인스턴스가 있습니다.

Google 프로젝트 social-media-analytic-199517의 emotion_insights.zip 파일을 내 인스턴스로 복사하고 싶습니다.

root@sentiment-instance-1:/home/amiteshkesinha#

다음 명령을 사용하려고 시도했지만 오류가 발생했습니다.

amiteshkesinha@social-media-analysis-199517:~$ gsutil cp amiteshkesinha@social-media-analysis-199517>:/home/amiteshkesinha/sentiment_insights.zip root@sentiment-instance-1>:/home/amiteshkesinha

이 명령을 실행한 후 출력

이 파일을 복사하는 방법. 저는 GCP를 처음 접했고 탈출구를 찾을 수 없습니다.

답변1

Google Cloud SDK Shell을 사용하여 해결했습니다. 다음 명령을 작성한 후 파일이 업데이트되었습니다.

gcloud compute scp D:/projects/Amitesh/sentiment_insights.zip --zone=us-east1-b root@sentiment-instance-1:/home/amiteshkesinha/

관련 정보