GitHubにssh接続する手順 (Windows10)
前提・準備 === git config --global user.name [任意のユーザ名] git config --global user.email [任意のメールアドレス]
設定手順 === ※秘密鍵ファイルの作成 ssh-keygen -t rsa -b 4096 -C "hoge@sample.com"
※作成したファイルを確認する。 $ ls -l ~/.ssh
※作成した公開鍵をコピーする $ clip < ~/.ssh/id_rsa.pub
※Configファイルの作成
Host github HostName github.com IdentityFile ~/.ssh/id_rsa
User git
git remote は http ではなく sshに変更する。 git remote set-url origin git@github.com:<ユーザID>/<リポジトリ名>.git
参考 =====
https://yu-report.com/entry/githubssh/