ノート: DSAキー(SSH-DSS)はサポートされなくなりました。 既存のキーは引き続き動作しますが、GitHub Enterprise Serverアカウントに新しいDSAキーを追加することはできません。
-
ターミナルターミナルGit Bashを開いてください。
-
既存の SSH キーが存在するかを確認するため、以下のように
ls -al ~/.sshと入力します:$ ls -al ~/.ssh # .ssh ディレクトリ内のファイルを一覧表示する(存在する場合) -
ディレクトリの一覧から、公開 SSH キーをすでに持っているか確認します。 デフォルトでは、公開鍵のファイル名は以下のいずれかです:
- id_rsa.pub
- id_ecdsa.pub
- id_ed25519.pub
公開鍵と秘密鍵のペアが存在しないか、既存の鍵を GitHub Enterprise Serverへの接続に利用したくない場合、新しい SSH キーを作成します。
一覧に既存の公開鍵と秘密鍵のペア (id_rsa.pub と id_rsa など) があり、それを GitHub Enterprise Server への接続に利用したい場合、SSH キーを ssh-agent に追加します。
ヒント: ~/.ssh が存在しないというエラーが返ってきた場合も、ご心配なく。 新しい SSH キーを作成する際に、それも作成されます。

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
