9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Lucio De Re <lucio.dere@gmail.com>
To: 9fans <9fans@9fans.net>
Subject: [9fans] Signature algorithms for P9P ssh-agent
Date: Sat, 11 Feb 2023 06:07:37 +0200	[thread overview]
Message-ID: <CAJQ9t7id_m9wcGXE33=HT0_MMCvMqVdaUVR3NQJgay2HUUP4=g@mail.gmail.com> (raw)

Briefly: I hacked P9P's ssh-agent to handle my 4096-bit RSA key, but
it still interacts poorly with conventional Linux/Debian installations
of OpenSSH. The error message:

agent key RSA SHA256:XXX...XXX returned incorrect signature type

is explained as follows on stackoverflow:

This message means that the SSH connection negotiated a connection
using an RSA key with a different signature algorithm, either SHA-256
or SHA-512. However, the SSH agent, when asked to make the signature
for that connection, provided an SHA-1 signature, which isn't in
compliance with the agent protocol.

Before I tackle the complexities of RSA encryption and decryption, is
there a quick description of where I may be able to add the missing
signature algorithm so I can upgrade the agent and/or factotum (Plan 9
rsaencrypt and rsaencrypt functions are the likely culprits, I just
need some directions to avoid poorly re-inventing the wheel).

Lucio.

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Tab0b060ef6f74832-M3af8dfeffd9e4320c74ab94a
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

                 reply	other threads:[~2023-02-11  4:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAJQ9t7id_m9wcGXE33=HT0_MMCvMqVdaUVR3NQJgay2HUUP4=g@mail.gmail.com' \
    --to=lucio.dere@gmail.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).