gitlab利用ssh方式拉取代码

问题1:

Bad owner or permissions on .ssh/config的解决

当为本机配一个固定用户名远程登录某主机时,配置了一个config文件,但是在执行ssh免密码登录时报如下的错误:Bad owner or permissions on .ssh/config的解决。

经过查找资料发下解决办法如下:

chmod 600 config    

config文件内容参考:

Host gitlab-test.devbei.cn
HostName 192.168.1.36
Port 223
User git
IdentityFile ~/.ssh/id_rsa

原文地址:https://www.cnblogs.com/tianfen/p/9322142.html