Month: December 2019

Setup SSH to connect to GCP

在 GCP 建立完 VM linux 後  (以 CentOS 7為例) VM linux 自動新增一個類似你的帳號先在 linux/Mac 下產生 private、public key: $ ssh-keygen -f mykeyfilename Generating public/private rsa key pair. Enter passphrase (empty for no passphrase):  (給這個 private key 一個密碼,可避免這組 private key被偷時的風險) Enter same passphrase again:  (再key一次密碼) Your identification has been saved in mykey. Your public key has been saved in mykey.pub.