修改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,填写公钥
原创文章,作者:3628473679,如若转载,请注明出处:https://blog.ytso.com/195622.html