Forum

구글 클라우드 관련 몇가지 사용법들
 
알림
모두 지우기

구글 클라우드 관련 몇가지 사용법들

(@wetraveltoworldgmail-com)
회원 Admin
가입일: 7개월 전
글: 138
주제 스타터  

google 클라우드 사용시 Google CLI를 컴퓨터에 설치하는걸 추천합니다.

 

아래 명령어를 실행시켜 내 클라우드 서버가 어느존에 있는지 정보를 확인한다

C:\Windows\System32>gcloud compute instances list
NAME ZONE MACHINE_TYPE PREEMPTIBLE INTERNAL_IP EXTERNAL_IP STATUS
openclawtest asia-east1-c custom (e2, 2 vCPU, 4.00 GiB) 10.140.0.5 34.81.73.68 RUNNING

이후, 아래 Your_zone을 내 존으로 바꾼 후 실행

gcloud compute ssh cocoroso@openclawtest --zone=asia-east1-c -- -L 18789:127.0.0.1:18789 -N

 

Public Key 확인방법;

type C:\Users\cocor\.ssh\google_compute_engine.pub

Copy the entire output (it starts with ssh-rsa ...)

 



   
인용