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

推荐订阅源

博客园 - 三生石上(FineUI控件)
Y
Y Combinator Blog
aimingoo的专栏
aimingoo的专栏
B
Blog
小众软件
小众软件
D
DataBreaches.Net
T
The Blog of Author Tim Ferriss
L
LangChain Blog
WordPress大学
WordPress大学
罗磊的独立博客
GbyAI
GbyAI
S
SegmentFault 最新的问题
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
T
Tailwind CSS Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
月光博客
月光博客
IT之家
IT之家
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
雷峰网
雷峰网
美团技术团队
F
Fortinet All Blogs
Hugging Face - Blog
Hugging Face - Blog
The GitHub Blog
The GitHub Blog

web 服务器 on 打工人日志

使用TLSv1.3 升级nginx和openssl nginx 配置和编译 nginx 编译参数详解 nginx 重写规则 rewrite模块 nginx.conf 配置文件详解 nginx 日志格式整理 nginx 汇总
nginx ssh-key connection exception
2022-06-15 · via web 服务器 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