解决Smartgit中始终出现Please make sure you have the correct access rights问题

环境:ubuntu16.04

问题描述:使用SmartGit开始没有什么问题,但是由于好几天没有打开电脑(不知道是不是有更新或者系统bug)导致SmartGit中pull或者push都出现Please make sure you have the correct access rights......


如何解决:不知道具体原因,将Edit>>Preferences中Commands>>Authentication下KNown credentials删除删除后,再次pull代码出现connect to host github.com port 22: Connection timed out。发现这个在网上有解决办法

方法如下:

1>>>cd ~/.ssh

2>>>gedit config(创建一个config文件)

3>>>添加信息如下:

Host github.com
User xxxxxxxx@gmail.com
Hostname ssh.github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
Port 443

即可,重新打开SmartGit,然后push等操作即可。

相关文章

目录前言一、创建Hadoop用户二、更新apt和安装Vim编辑器三、...
原文连接:https://www.cnblogs.com/yasmi/p/5192694.html ...
电脑重启后,打开VirtualBox,发现一直用的虚拟机莫名的消失...
参见:https://blog.csdn.net/weixin_38883338/article/deta...
Ubuntu 18.04 LTS 已切换到 Netplan 来配置网络接口。Netpla...
介绍每个 Web 服务都可以通过特定的 URL 在 Internet 上访问...