如何解决git -- Connection reset by [server_ip] port 22

前提: 已经生成ssh公钥和私钥并配置完毕 当git clone, git push, git pull ...不起做用时,出现以下错误html

说明git软件没法经过ssh链接到github,有可能时防火墙或ISP设置的防火墙阻止端口22上的ssh链接,能够用如下命令替换:git

git remote add origin-https xxx(https方式)github

git push -u origin-https masterssh

git pull origin-https mastercdn

参考 www.cnblogs.com/wumz/p/9820…htm

相关文章
相关标签/搜索