权限被拒绝(publickey)。致命的:远端意外挂上了git pull [英] Permission denied (publickey). fatal: The remote end hung up unexpectedly for git pull

查看:638
本文介绍了权限被拒绝(publickey)。致命的:远端意外挂上了git pull的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Ubuntu 12.04



Kannan @ Ubuntu:〜/ a / git pull

权限被拒绝(publickey)。

致命:远程终端意外挂断



如何解决此问题。请让我知道

解决方案

我认为这是由于ssh问题

确认你的钥匙是否在 .ssh 文件夹中,如果是,则执行以下操作:

打开〜/ .bashrc &添加

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

并在终端上执行bash,并执行git pull.I希望它能正常工作


I am using Ubuntu 12.04

Kannan@Ubuntu:~/a/git pull

Permission denied (publickey).

fatal: The remote end hung up unexpectedly

How to resolve this issue. Please do let me know

解决方案

I think this is due to ssh problem

Make sure whether your key is in the .ssh folder, if yes, then do the following one

Open ~/.bashrc & add

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

and do bash on terminal and do git pull.I hope it will work

这篇关于权限被拒绝(publickey)。致命的:远端意外挂上了git pull的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆