`
kowen
  • 浏览: 113541 次
  • 性别: Icon_minigender_1
  • 来自: 东营
社区版块
存档分类
最新评论

修改默认ssh端口后,客户端访问git服务器的方法

阅读更多

默认的ssh端口是22,通常远程git是通过ssh端口进行访问的,所以服务器修改了ssh默认端口或者经过防火墙端口映射之后,git clone gituser@server:project.git命令就不能用了。解决的方法如下:

git clone ssh://gituser@server:PORT/project.git

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics