2
私は以下のようにGithubパスワードなしログインを設定しました。デフォルト以外のキー名(id_rsa以外)を使用
ssh-keygen -t rsa -P ''
cat .ssh/id_rsa.pub |xclip
私はsshとGPGキーのGithubサイト上に公開鍵を貼り付けました。
git init
git config --global user.name "someone"
git config --global user.email "[email protected]"
git config remote.origin.url git+ssh://[email protected]/someone/newstart.git
ssh -T [email protected]
git clone git+ssh://[email protected]/someone/newstart.git /tmp/newstart
上記は機能します。
ここでは、デフォルト名id_rsaではなく、Githubに別のキー名を使用したいとします。
sh-keygen -t rsa -P '' -f .ssh/id_rsa.github
cat .ssh/id_rsa.github.pub |xclip
私はsshとGPGキーのGithubサイト上に新しいパブのキーを貼り付けました。
git init
git config --global user.name "someone"
git config --global user.email "[email protected]"
git config remote.origin.url git+ssh://[email protected]/someone/newstart.git
ssh -T [email protected]
上記は機能しません。
git clone git+ssh://[email protected]/someone/newstart.git /tmp/newstart
上記は機能しません。
ssh -i .ssh/id_rsa.github -T [email protected]
上記のコマンドはGithubに正常に接続できますが、次のコマンドを入力してリポジトリを複製することはできません。
git clone -i .ssh/id_rsa.github git+ssh://[email protected]/someone/newstart.git /tmp/newstart
は、私は、このようなid_rsa.githubの代わりに、デフォルトの名前id_rsaととして、別の名前のパブのキーを使用することはできませんか?