温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

gitlab免登陆配置

发布时间:2020-07-24 20:38:20 来源:网络 阅读:736 作者:hgditren 栏目:软件技术

修改ssh配置文件

zrj@zrj:/etc/nginx/sites-available$ cat ~/.ssh/config 
Host gitlab.yundoukuaiji.com 
IdentityFile ~/.ssh/id_rsa 
User zhangrenjie 
port 10122

Host gitlab.jiayunhui.com 
IdentityFile ~/.ssh/id_rsa 
User zhangrenjie 
port 10122

找到公钥

zrj@zrj: cat ~/.ssh/id_rsa.pub 
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCsjz/BqK1wducBghm949h6GQ6WQ3rXvGBmjAfDtX84bjVuByem1BwpXvyaueqxn7OrUX6AvzGK5A5dNWwGT5doZN5ponodez51oD9EKgUSXv3jKNdJNfyDxlSj8hDiBUDy+2l5CrEkv3FVzttn5dgy3mlEPm92cyWIN8BHkUsSGpGGLepqksRG/1kpNwHlNmeAW7mnf2ZnnviLNz9tk2LPuN5gV54R44XApnWNT98GanU0ijnJgWaVorCBHzQsJvFwmEBaGSnD84U2jW4kZM6Z729HbpvG/dV83F+sPUe9I7IW4SVYhVFSc11nKCMPOJYyNKl0tnkcxBOawOvrCpJ+YOTRxGpVS2VZB0iz9r1HflEnO2alNggwcE6Xv1Cu4HBO/03TOlwHBQxDy/Wsl9bEsH+sgn6IvHLLp5VpL/uqdshxQHCcp6iXIpGgo9998gMrfQ3yjKrhW5ld8HwqCQPifjwpM3/oVUQ8mSA387kd0vG1NV3PeqmGLg434KLJPdiMfW6QdGdfoV8QemX/MLRT9OCAs2lLLFcXT2YzT0ImiKIP1qIpa16JeqY7kYkul8XbL1StuEcX6M+XUMZDcO4tpHV418q4eberBcYnAPD+EbcRfDFl/nJyV9OkZAEAqnLllyNe6xrB41nIlS3qaBjK5c1BLn7Q6MUvdUG4DL/7vQ== zhangrenjie@jiayunhui.com

打开GitLab,找到 User Settings ->SSH Keys,填写公钥

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI