Github - can't connect via ssh from time to time

久未见 提交于 2019-12-04 10:16:05

Try changing your git default ssh port using the command $ git remote add origin ssh://user@host:1234/srv/git/example and your ssh port to 1234. you can use anyother port you like rather than 1234 (larger than 1000 are recommended).see if it can solve your problem. :)

.try changing your ~/.ssh/config file if doesn't exit create one.

Host github.com Port 22 Host * Port 1234

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!