Github - 删除 ECDSA-SK 密钥
Github - deleting ECDSA-SK key
前段时间得知ECDSA-SK keys的存在时,我创建了这样一个密钥,并将其添加到我的github帐户中。
现在我想删除它,但它根本没有出现在键列表中。该列表仅显示我的“常规”SSH 密钥,但不显示 SK 密钥。
但是,SK 键工作正常。我可以 push/pull 使用它(甚至 to/from 私有存储库),并且在尝试使用它进行身份验证时它显示连接到我的 github 帐户:
$ ssh -T -ai ~/.ssh/id_rsa.sk git@github.com
Hi bogd! You've successfully authenticated, but GitHub does not provide shell access.
此外,如果我尝试将其添加到我的帐户,github 会告诉我“密钥已在使用中”。
所以我的问题是 - 我需要去哪里删除这个密钥?
自 2021 年 5 月 GitHub announcement 起,您应该看到以下内容:
如果没有列出“skey
”条目:
- 检查当你有 YubiKey 时它是否会被列出
- 检查您是否可以通过 GitHub API (you would need a token with
read:public_key
scope) 列出该密钥
- 联系 GitHub support 进行调查。
OP Bogd reports in the SK (Security Key) was listed as a Deploy Key
The "-i
" argument to SSH only adds the specified key to the list of keys the client will try.
Since I normally always have my RSA key loaded in the agent, it is likely that key was tried first, and that was why the command output did not list the repository.
The command should have been:
ssh -v -o "IdentitiesOnly=yes" -i ~/.ssh/id_rsa.sk git@github.com'
前段时间得知ECDSA-SK keys的存在时,我创建了这样一个密钥,并将其添加到我的github帐户中。
现在我想删除它,但它根本没有出现在键列表中。该列表仅显示我的“常规”SSH 密钥,但不显示 SK 密钥。
但是,SK 键工作正常。我可以 push/pull 使用它(甚至 to/from 私有存储库),并且在尝试使用它进行身份验证时它显示连接到我的 github 帐户:
$ ssh -T -ai ~/.ssh/id_rsa.sk git@github.com
Hi bogd! You've successfully authenticated, but GitHub does not provide shell access.
此外,如果我尝试将其添加到我的帐户,github 会告诉我“密钥已在使用中”。
所以我的问题是 - 我需要去哪里删除这个密钥?
自 2021 年 5 月 GitHub announcement 起,您应该看到以下内容:
如果没有列出“skey
”条目:
- 检查当你有 YubiKey 时它是否会被列出
- 检查您是否可以通过 GitHub API (you would need a token with
read:public_key
scope) 列出该密钥
- 联系 GitHub support 进行调查。
OP Bogd reports in
The "
-i
" argument to SSH only adds the specified key to the list of keys the client will try.Since I normally always have my RSA key loaded in the agent, it is likely that key was tried first, and that was why the command output did not list the repository.
The command should have been:
ssh -v -o "IdentitiesOnly=yes" -i ~/.ssh/id_rsa.sk git@github.com'