gitlab单独生成ssh内网连接

为公司生成一对秘钥ssh key
ssh-keygen -t rsa -C 'yourEmail@xx.com' -f ~/.ssh/gitlab-rsa
【gitlab单独生成ssh内网连接】vim ~/.ssh/config,输入下面的内容:

Host github.com ~/.ssh/id_rsa Host 192.168.253.134 HostName 192.168.253.134 PORT 8090 ~/.ssh/gitlab-rsa

然后做一次提交
cd devops touch README.md git add README.md git commit -m "add README" git push origin master

    推荐阅读