美文网首页
git push and unable to access Se

git push and unable to access Se

作者: 多夏_zoey | 来源:发表于2019-03-07 14:32 被阅读0次

1、Generating a new SSH key

1)终端下执行

ssh-keygen -t rsa -b 4096 -C "shifangfang0819@126.com"  ----邮箱输入自己

2)Enter passphrase (empty for no passphrase):---随便输入一个密码

3)拷贝公钥

pbcopy < ~/.ssh/id_rsa.pub

2、Adding your SSH key to the ssh-agent

1)登录github点击右上角setting

2)add new ssh

3、测试SSH的连接

1)打开终端输入

ssh -T git@github.com

2)输入1里面设置的密码,看到如下内容表示成功

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

相关文章

网友评论

      本文标题:git push and unable to access Se

      本文链接:https://www.haomeiwen.com/subject/kjtcpqtx.html