Open lordfeck opened 8 months ago
Okay, I see this issue, but I know next to nothing about SSH's inner workings. If someone figures it out and supplies a patch, I can apply it and make a new release.
Since this module is on life support, if the actively maintained Net::OpenSSH might be a better option.
I'm having a problem when the module opens a new SSH connection, it looks like it is misreading the key format.
I have this line in my Perl code:
When I run it, it croaks. An excerpt from the debug output:
ssh-keygen reveals that my key is RSA format:
Adding the following to the constructor didn't help, though it was a guess:
My id_rsa file begins as follows:
I've traced the code into Net::SSH::Perl::Key and it appears that the SSH module is attempting to read the key as ED25519
I ran a fresh ssh-keygen and noted that generating Ed keys isn't the default, I wonder if there has been a change to the format? I will share the exact contents of a fresh keypair if that helps your investigation.
System details:
Using MacOS 12.7.1 and Perl 5.38
The key works for normal SSH purposes, I can use it to login, run commands, do scp and git, etc.