http://qs321.pair.com?node_id=990784

chenryn has asked for the wisdom of the Perl Monks concerning the following question:

I like use Net::SSH2 or Net::SSH::Perl module to connect my remote hosts. But now the cluster changes to be authed by krb5 ---- that means $ssh2->auth_list return "gssapi-keyex" and "gssapi-micpassword".

I donot find any words about gssapi support in the POD of Net::SSH2 or Net::SSH::Perl. Then what can I do?

  • Comment on How to use Net::SSH2 in a krb5 authen env?

Replies are listed 'Best First'.
Re: How to use Net::SSH2 in a krb5 authen env?
by salva (Canon) on Aug 31, 2012 at 08:04 UTC
    Looking at libssh2 feature list, it does not seem to support krb5 authentication.

    Net::OpenSSH should work as OpenSSH does support it. Configure your environment to log into the remote host using OpenSSH ssh client with krb5 authentication, and Net::OpenSSH will just work.

      How about the performance of Net::OpenSSH? Sounds like wrap ssh command with Expect?

        Performance is similar to that of Net::SSH2.
Re: How to use Net::SSH2 in a krb5 authen env?
by ig (Vicar) on Aug 30, 2012 at 19:14 UTC

    I would talk to the people that manage the remote hosts about enabling public key authentication.