github生成密钥clone

发布时间:2026/10/24 1:42:26
github生成密钥clone

1、ssh-keygen -t rsa -b 4096 -C "邮箱地址"

2、eval "$(ssh-agent -s)"

3、ssh-add ~/.ssh/id_rsa

4、cat ~/.ssh/id_rsa.pub

5、add the pub_key to github setting ssh

6、ssh -T git@github.com
Hi W-XIAO-YONG! You've successfully authenticated, but GitHub does not provide shell access.