MAC电脑SSH连接github

1、生成SSH Key

ssh-keygen -t rsa -C "your_email@example.com"

直接回车,不需要输入如何密码。

2、添加公钥到你的远程仓库(github)

3、验证

ssh -T git@github.com

看到

Hi shu-tong! You've successfully authenticated, but GitHub does not provide shell access.

posted @ 2020-04-02 16:01  奔跑的🐌  阅读(222)  评论(0)    收藏  举报