GitLab非标准ssh端口报错解决Connection refused Could not read from remote repository

报错如下:

Ssh: connect to host gitlab.xiaozhichina.com port 10022: 
Connection refused Could not read from remote repository. 
Please make sure you have the correct access rights and the repository exists.

 解决方法:

1、客户端生成密钥 ssh-keygen -t rsa -C "your_email@example.com"
2、GitLab服务器端修改sshd_config,添加非标准端口

 


版权声明:本文为zhangjunli原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。