



























Not long ago, I wanted to restart the company’s gitlab server.I couldn’t coonect to ssh when it restarted.emm……I try copy the ssh rsa.pub,but it didn’t work.
error log:
identity_sign: private key ~/.ssh/id_rsa contents do not match public
what is happen?
reconfigure gitlab ssh key!
1ssh-keygen -t rsa -C 'git@gitlab.com' -f ~/.ssh/gitlab-rsa
1# add host
2Host gitlab.com
3 HostName gitlab.com
4 IdentityFile ~/.ssh/gitlab_id-rsa
You are done
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。