千家信息网

gitlab免登陆配置

发表于:2024-12-04 作者:千家信息网编辑
千家信息网最后更新 2024年12月04日,修改ssh配置文件zrj@zrj:/etc/nginx/sites-available$ cat ~/.ssh/config Host gitlab.yundoukuaiji.com Identity
千家信息网最后更新 2024年12月04日gitlab免登陆配置

修改ssh配置文件

zrj@zrj:/etc/nginx/sites-available$ cat ~/.ssh/config Host gitlab.yundoukuaiji.com IdentityFile ~/.ssh/id_rsa User zhangrenjie port 10122Host 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,填写公钥

0