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 rsa.pub,but it didn’t work.

error log:

identity_sign: private key ~/.ssh/id_rsa contents do not match public
log

what is happen?

solution

reconfigure gitlab ssh key!

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

You are done

  • 全部
  • 简体中文
  • 最佳匹配
  • 最旧的
  • 最新的
  • 2021
  • 2022
  • 2023
  • 2024
  • 2025
  • jobcher
  • docker
  • github
  • gitlab
  • go
  • IOS 开发
  • k8s
  • Mac
  • stable diffusion
  • web 服务器
  • web3.0
  • work
  • 人工智能
  • 周报
  • 基础
  • 打赏
  • 数据库
  • 旅行
  • 日常
  • 日报
  • 测试
  • 监控
  • 福利
  • 美食
  • 问题库
  • docker入门系列
  • docker进阶系列
  • github
  • git入门系列
  • go系列
  • IOS 开发
  • k8s入门系列
  • k8s系列
  • Mac系列
  • mysql系列
  • oracle系列
  • stable diffusion
  • web3.0
  • web服务入门系列
  • 人工智能系列
  • 周报系列
  • 基础知识系列
  • 打赏
  • 旅行系列
  • 日常系列
  • 日报
  • 测试
  • 福利系列
  • 美食家常菜系列
  • 运维监控系列
  • 问题库系列
  • ansible
  • brew
  • ChatGPT
  • daliy
  • docker
  • DockerCompose
  • dockerfile
  • error
  • github
  • gitlab
  • golang
  • IOS 开发
  • IPFS
  • java
  • javascript
  • k3s
  • k8s
  • linux
  • logstash
  • Markdown
  • midjourney
  • minIO
  • mysql
  • nginx
  • nps
  • oracle
  • Planet
  • prometheus
  • pve
  • RocketMQ
  • rsync
  • skywalking
  • stable diffusion
  • TCP/IP
  • Terraform
  • web3.0
  • work
  • 内网穿透
  • 周报
  • 基础
  • 外快
  • 打赏
  • 扩容磁盘
  • 日常生活
  • 日报
  • 树莓派
  • 测试
  • 网心云
  • 美食
  • 自动化
  • 运维