Closed ambroisie closed 2 years ago
@appleboy bump, since upstream has closed the issue with a fix.
@ambroisie Let me check.
FYI still have the exact same error message when I bumped my version of drone-scp
, so that issue might have been a red-herring.
@ambroisie how do you generate your key? maybe I can try it and how do I reproduce the issue?
@appleboy it's a simple RSA key, 4096 bits: ssh-keygen -b 4096
with a passphrase.
Here are the ssh -v
logs for an example of a connection:
But with the following example script it does not work:
Still the same message of error message: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
I recently updated my server, and with it upgraded
openssh
from 8.7 to 8.8. One of the incompatible changes from that release is disabling RSA signatures using SHA-1 by default 1. There is currently an open bug at https://github.com/golang/go/issues/37278 relating to this, and becausedrone-scp
is making use of this library, it is also affected.The error message from
drone-scp
in such cases is the following:I do not think that there is anything to be done from
drone-scp
, apart from updating to the latest version once it is fixed upstream. I opened the issue so that others impacted by this change can find it more easily.