briandfoy / net-ssh-perl

Development on the Net::SSH::Perl module to support latest ciphers, key exchange mechanisms, etc.
Other
4 stars 1 forks source link

Net::SSH::Perl::Agent: support for ssh certificates missing #33

Open briandfoy opened 1 year ago

briandfoy commented 1 year ago

This ticket was imported from rt.cpan.org 66852

Hi

I loaded a private key with a certificate into the ssh-agent:

$ ssh-add Enter passphrase for /home/user/.ssh/id_dsa: Identity added: /home/user/.ssh/id_dsa (/home/user/.ssh/id_dsa) Certificate added: /home/user/.ssh/id_dsa-cert.pub (user@domain.com) $ ssh-add -l 1024 36:4f:b0:21:b6:e4:e5:83:61:29:5c:40:44:12:92:12 /home/user/.ssh/id_dsa (DSA) 1024 36:4f:b0:21:b6:e4:e5:83:61:29:5c:40:44:12:92:12 /home/user/.ssh/id_dsa (DSA-CERT)

When Net::SSH::Perl::Agent is now iterating the keys, it fails on the certificate as it cannot create a key of type ssh-dss-cert-v01@openssh.com: Key class 'Net::SSH::Perl::Key::' is unsupported: Can't locate Net/SSH/Perl/Key/.pm in @INC (...) at (eval 17) line 1.

I am using Net-SSH-Perl v1.34 and perl v5.10.1 and Ubunutu 10.10 with kernel 2.6.35-28-generic.

Thanks Konrad