個人用の SSH ユーザー キー
Bitbucket supports the following SSH key types:
- ED25519
- RSA2 (we recommend you use a key size of at least 2048 bits)
- ECDSA
- DSA (we recommend you use other key types)
注意:
- A Bitbucket user can add any number of keys to their account.
- 同じ SSH アクセス キーを複数のリポジトリまたはプロジェクトで使用できます。
- 個人ユーザー アカウントに使用されているキーを、プロジェクトまたはリポジトリのアクセス キーとして再利用することはできません。また、プロジェクトまたはリポジトリ キーとして使用されているキーをユーザー アカウントに再利用することはできません。
- If you've already cloned a repository, you'll need to make sure you’re accessing it via the SSH URL. Learn more about how Git remote works
Add an SSH key to your Bitbucket account
Windows 場合、コマンド プロンプトで、ディレクトリを .ssh ディレクトリに変更し、以下を実行して公開キー ファイルをクリップボードにコピーします。
Windowscd %userprofile%/.ssh clip < id_ed25519.pub
macOS または Linux の場合、ターミナルで次のコマンドを実行します。Mac OS Xpbcopy < ~/.ssh/id_ed25519.pub
If
pbcopy
isn't working, locate the hidden.ssh
folder, open the file in a text editor, and copy it to your clipboard.
Note that on Linux, you may need to download and install xclip, then use that, as shown in this code snippet:Linuxsudo apt-get install xclip xclip -sel clip < ~/.ssh/id_ed25519.pub
In Bitbucket, go to your account:
- Select Manage account.
- [SSH キー] > [キーの追加] の順にクリックします。
- キーをテキスト ボックスに貼り付けます。
- [キーの追加] をクリックします。これで完了です。
Use SSH keys to connect to Bitbucket repositories
SSH アクセスが上記のようにセットアップされている必要があります。これが完了すると、次のように SSH キーを使用できます。
- [プロジェクト] に移動してプロジェクトをクリックし、一覧からリポジトリを選択します。
- サイドバーの [クローン] をクリックして、リポジトリのクローン URL を確認します。
- Choose the clone URL you want to use. SSH is available if you have already added an SSH key to your account. If you haven't done that yet, see Add an SSH key to your Bitbucket account, above.
最終更新日 2022 年 11 月 24 日
Powered by Confluence and Scroll Viewport.