nginx ssh-key connection exception

nginx ssh-key connection exception

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,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!

  1. create new ssh key
1ssh-keygen -t rsa -C '' -f ~/.ssh/gitlab-rsa
  1. update config file,enter ~./ssh,open config
1# add host
3    HostName
4    IdentityFile ~/.ssh/gitlab_id-rsa
  1. enter ,Profile Settings–>SSH Keys–>Add SSH Key

You are done