git push Connection reset by 52.74.223.119 port 22

出现的问题:

Git Bash 控制行命令:git push 向远程git仓库ssh地址推送的时候,命令行提示Connection reset by 52.74.223.119 port 22

          而git push 向远程git仓库http地址推送的时候正常推送

问题如图所示:

解决的方法:

在window防火墙设置22端口

1、window10安全中心-->高级设置

git push Connection reset by 52.74.223.119 port 22_第1张图片

2、入站规则-->新建规则

git push Connection reset by 52.74.223.119 port 22_第2张图片

3、选择端口

git push Connection reset by 52.74.223.119 port 22_第3张图片

 

4、端口输入22

git push Connection reset by 52.74.223.119 port 22_第4张图片

 

 

5、选择允许连接

git push Connection reset by 52.74.223.119 port 22_第5张图片

 

 6、下一步

git push Connection reset by 52.74.223.119 port 22_第6张图片

7、添加名称和描述(随意填写)

 git push Connection reset by 52.74.223.119 port 22_第7张图片

 

转载于:https://www.cnblogs.com/Diamond-sjh/p/11352156.html

你可能感兴趣的:(git push Connection reset by 52.74.223.119 port 22)