码迷,mamicode.com
首页 > 其他好文 > 详细

Git相关

时间:2015-05-21 17:00:58      阅读:139      评论:0      收藏:0      [点我收藏+]

标签:

  1. 重装系统后,git访问远端被拒:
    Access denied.
    fatal: Could not read from remote repository.
    Please make sure you have the correct access rights and the repository exists.

    解决方案:在远端添加SSH Key:
    本地生成key:

    ssh-keygen -t rsa -C "SubmarineX@SubmarineX.cn"# Creates a new ssh key using the provided email
    # Generating public/private rsa key pair...

    显示公钥内容

    cat ~/.ssh/id_rsa.pub
    # ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6eNtGpNGwstc....

    复制公钥内容并在远端添加即可(注意不是Deploy key)。

Git相关

标签:

原文地址:http://www.cnblogs.com/submarinex/p/4520011.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!