8
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

gcloudの自分用メモ

Last updated at Posted at 2018-02-02

#自分用GCPメモ
###初めてGCPを触ったので、その時に使ったコード諸々の自分用のメモです(間違ってるのもあるかも)

##共通

###デフォルトプロジェクトの切り替え

$gcloud config set project プロジェクト名

###アカウントの切り替え

$gcloud config set account アカウント名

###アカウントの認証

$gcloud auth login

###認証済みのアカウントのリストを見る

$gcloud auth list

##GAE編

###アプリをデプロイする

$gcloud app deploy

###サーバーを立ち上げて、アプリをテストする

$dev_appserver.py

##GCE編

###[INSTANCE_NAME]にSSH接続する

$gcloud compute ssh インスタンス名

###SSHキー(暗号化方式はRSAで)の発行

$ssh-keygen -t rsa -C アカウント名

###既存のSSHキーの確認

$ls -al ~/.ssh
8
4
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
8
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?