Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save oimou/09491b07f56f214d7390 to your computer and use it in GitHub Desktop.

Select an option

Save oimou/09491b07f56f214d7390 to your computer and use it in GitHub Desktop.

BitbucketへのSSH公開鍵の手順メモ

Bitbucket登録後にSSHの公開鍵を設定する時のメモ

SSH鍵の作成

ssh-keygen -t rsa -C "bitbucketにユーザ登録しているメールアドレス"

あとはひたすらEnter(3回ほど)。

chmod 600 ~/.ssh/id_rsa

でアクセス権限を変更する。

BitbucketでKey登録

下記コマンドで鍵を出力し、内容をコピーする

cat ~/.ssh/id_rsa.pub

Bitbucketからアカウント管理のSSH keyを開いて、鍵をコピペで完了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment