公開鍵、秘密鍵を作成する
$ ssh-keygen -t rsa -C "メールアドレス" -f ~/.ssh/新しい鍵のファイル名
~/.ssh/configの設定
Host 適当に(github-新しいアカウント名など)
HostName github.com
IdentityFile ~/.ssh/new_id_rsa # 作成した秘密鍵を指定
User git
TCPKeepAlive yes
IdentitiesOnly yes
3.作成した公開鍵をGitHubに登録する
4.作成したリモートリポジトリをローカルに登録
$ git remote add origin git@.ssh/configのHostNameの名前:githubの新アカウント名/XXX.git