728x90
반응형
GCP VM Instance 화면에서 ssh 버튼을 통하지 않고 Cloud Shell 에서 직접 SSH 를 접근 할 경우 쓰는 방법이다.
gcloud compute ssh --project [PROJECT_ID] --zone [ZONE] [INSTANCE_NAME]
cloud Shell 에 접근한후 다음과 같이 하면 된다.
먼저 instance list 를 조회한다.
gcloud compute instances list
NAME ZONE MACHINE_TYPE PREEMPTIBLE INTERNAL_IP EXTERNAL_IP STATUS
myinstance us-central1-a n1-standard-1 10.128.0.2 146.148.43.62 RUNNING
그리고 위에 명령어처럼 아래와 같이 접근을 하면 된다.
gcloud compute ssh --zone us-central1-a myinstance
간단하네~
참고 사이트
https://cloud.google.com/compute/docs/instances/connecting-to-instance
728x90
반응형
'Development > GoogleCloud' 카테고리의 다른 글
[Qwiklabs]Scale Out and Update a Containerized Application on a Kubernetes Cluster (0) | 2020.03.26 |
---|---|
[Qwiklabs]Build and Deploy a Docker Image to a Kubernetes Cluster (0) | 2020.03.26 |
[GCP] Cloud Shell 에서 Instance 접근 방법 (0) | 2020.03.16 |
[Qwiklabs]Configure Secure RDP using a Windows Bastion Host (0) | 2020.03.15 |
[Qwiklabs] Configure a Firewall and a Startup Script with Deployment Manager (0) | 2020.03.06 |
GCP Cloud Architect Practice Exam 오답 확인 (0) | 2020.02.28 |
댓글0