系统运维


gitlab推送仓库报错记录

<h2>报错截图:</h2> <p><img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=ee1ebcafbceece308fafb668c83fe610&amp;amp;file=file.png" alt="" /> 原因:可能是gitlab升级后对密钥的算法严重不一样了,所以需要换公钥。</p> <h3>解决方法</h3> <pre><code>ssh-keygen -t rsa -f ~/.ssh/id_rsa_new vim ~/.ssh/config Host sygame2015.f3322.net pt-gitlab.shiyue.com HostName pt-gitlab.shiyue.com IdentityFile ~/.ssh/id_rsa_new chmod 644 config</code></pre>

页面列表

ITEM_HTML