git服务器修改ssh端口后配置方法
默认的ssh端口是22,通常远程git是通过ssh端口进行访问的,所以服务器修改了ssh默认端口或者经过防火墙端口映射之后,git clone gituser@server:project.git命令就不能用了。解决的方法如下:
找到项目下的.git/config文件,修改
url = ssh://git@10.45.184.158:65300/root/jumpserver.git
转载于:https://blog.51cto.com/aaronsa/1744430