惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

IT之家
IT之家
U
Unit 42
大猫的无限游戏
大猫的无限游戏
H
Help Net Security
G
Google Developers Blog
Recent Announcements
Recent Announcements
B
Blog RSS Feed
罗磊的独立博客
博客园 - Franky
J
Java Code Geeks
S
SegmentFault 最新的问题
D
DataBreaches.Net
C
Check Point Blog
Blog — PlanetScale
Blog — PlanetScale
T
The Blog of Author Tim Ferriss
有赞技术团队
有赞技术团队
腾讯CDC
博客园_首页
美团技术团队
V
Visual Studio Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
GbyAI
GbyAI
The Cloudflare Blog
aimingoo的专栏
aimingoo的专栏

nginx on 打工人日志

使用TLSv1.3 升级nginx和openssl nginx 配置和编译 nginx 编译参数详解 nginx 重写规则 rewrite模块 nginx.conf 配置文件详解 nginx 日志格式整理 nginx 汇总
nginx ssh-key connection exception
2022-06-15 · via nginx on 打工人日志

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

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
  1. update config file,enter ~./ssh,open config
1# add host
2Host gitlab.com
3    HostName gitlab.com
4    IdentityFile ~/.ssh/gitlab_id-rsa
  1. enter http://gitlab.com ,Profile Settings–>SSH Keys–>Add SSH Key

You are done