Open7

秘密鍵の登録

はにわまんはにわまん

Githubでssh使う時
~/.ssh/configに以下を記載

Host my-Host-Name # 任意のホスト名
	HostName github.com
	User git # github.comの場合のユーザーはgit
	PreferredAuthentications publickey
	IdentityFile /Users/name/.ssh/id_rsa
	IdentitiesOnly yes
	UseKeychain yes
	AddKeysToAgent yes
はにわまんはにわまん

ssh接続確認

ssh -T git@my-Host-Name 
Hi my-user-name! You've successfully authenticated, but GitHub does not provide shell access.
ssh -T git@github.com
Hi my-user-name! You've successfully authenticated, but GitHub does not provide shell access.