2013-07-09 68 views

回答

5

我认为这是由于SSH问题

确保您的钥匙是否在.ssh文件夹,如果是,则执行下列操作之一

打开~/.bashrc &添加

eval `ssh-agent -s` 
ssh-add ~/.ssh/your_respective_key 

并在终端上做bash,并做git pull.I希望它能工作

+0

是否指路径'ssh-add〜/ .ssh/your_respective_key' – krs

+1

是,并在〜/ .ssh /(key_name) – narstack

+0

呵呵后添加密钥名称!非常感谢它的工作。 – krs

3

您需要确保您在Github上注册的公钥是用于执行Git pull的用户。

设立键GitHub的引导布局很好,他们有一个Linux版本: https://help.github.com/articles/generating-ssh-keys#platform-linux

确保它绝对是正确的用户的公钥,并且您还没有包括在年底的任何空白密钥 - 密钥在您的电子邮件地址末尾完成。

ssh-rsa 8f97gs89dfng746c74nyc7n478cb6ts746tb8746tbv9846cyb78 
sjfghsfg43534639fb09bg0g098243hfjc0478tjwygjw85jywcyhwj9y598 
dfhghuh3546ntnfgskjvgiu34b6t3== [email protected] 
       That is the end of your key ----^ 
相关问题