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
댓글
댓글 쓰기