fix(ssh): fetch ssh key by fingerprint (#39423)

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
TheFox0x7andwxiaoguang authored and GitHub committed 2026-09-25 06:22:04 -07:00
1 parent 6d59229331
commit 448f8c67e0
9 files changed
+60 -80

No files matched your search

+1 -1
View File
@@ -74,7 +74,7 @@ func runKeys(ctx context.Context, c *cli.Command) error {
setup(ctx, c.Bool("debug"))
authorizedString, extra := private.AuthorizedPublicKeyByContent(ctx, content)
authorizedString, extra := private.AuthorizedPublicKeyForSSH(ctx, content)
// do not use handleCliResponseExtra or cli.NewExitError, if it exists immediately, it breaks some tests like Test_CmdKeys
if extra.Error != nil {
return extra.Error