GCP How to access GCP VM instance using Linux(Ubuntu) terminal by SSH

 

1. Create ssh keys(public, private)

$ ssh-keygen -t rsa -f ~/.ssh/[key name] -C [account name] -b 2048


example  : ssh-keygen -t rsa -f ~/.ssh/test -C alex -b 2048





2. Copy ssh keys(public)

$ cat ~/.ssh/[key name].pub


example : cat ~/.ssh/test.pub




3. Regist your key to your instance



4. Access to your VM Instance by your Linux terminal

$ ssh -i [key file path] [account name]@[instance external IP address]


example : ssh -i ~/.ssh/test.pub alex@1.23.45.67





reference link : https://cloud.google.com/compute/docs/instances/connecting-advanced#thirdpartytools


댓글

이 블로그의 인기 게시물

Lesson 12_1 프로퍼티 노드(Property Node)

DAQ로 전압 측정하기-2

Lesson 12_2 참조를 이용한 프로퍼티노드(Property Node)