LoginSignup
0
0

More than 3 years have passed since last update.

【GCP】SSH鍵の登録

Posted at

【参考サイト】
最初こっちでやってたがうまくいかず→https://sleepless-se.net/2018/09/15/gcp-ssh/
こちらのやり方だと正常にできた→https://qiita.com/rog-works/items/74402f09b5aecc73f823

キーペアの生成について、AWSはインスタンス作成時の流れで可能だが、
GCPだとキーペアを別で作成する必要があるので少し不便。

【コマンド】
 ssh-keygen -t rsa -f ~/.ssh/my-ssh-key -C ******
 chmod 400 ~/.ssh/my-ssh-key
 cat ~/.ssh/my-ssh-key.pub
 ssh **@...*** -i ~/.ssh/id_rsa

【ポイント】
・ユーザー作成の時にメールアドレスをそのままいれるのはよくなさそう
・ユーザができるというのは、メタデータ> ユーザー名のところに自動で生成されるということのよう

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0