OpsWorks: cannot connect with Github due to SSH key / RSA issues

1

Our OpsWorks stacks will no longer deploy. They are failing when trying to connect to GitHub. Here's the error (with my github stuff obfuscated):

================================================================================
Error executing action `checkout` on resource 'git[Download Custom Cookbooks]'
================================================================================
 
 
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '128'
---- Begin output of git ls-remote "git@github.com:********"  ----
STDOUT: 
STDERR: ERROR: You're using an RSA key with SHA-1, which is no longer allowed. Please use a newer client or a different key type.
Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.
 
fatal: Could not read from remote repository.
 
Please make sure you have the correct access rights
and the repository exists.

The repo does exist. And when I try to put in a newer form of RSA key, the OpsWorks control panel rejects it. OpsWorks seems to want an old version of RSA which GitHub will no longer support. We're totally stuck. How do we get out of this?

已提问 2 年前316 查看次数
1 回答
0
已接受的回答

Unfortunately my only solution was that I realized we had another OpsWorks stack using the same SSH key, and when I copy/pasted that old key back to my machine, it worked. Magical solution that I still do not understand. I'm sorry I can't be more helpful. ;( For what it's worth, we are going to try to migrate completely off of OpsWorks during 2023.

已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则