Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

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

by chenryn (Novice)
on Aug 30, 2012 at 15:19 UTC ( #990784=perlquestion: print w/replies, xml ) Need Help??

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.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://990784]
Approved by herveus
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2022-05-21 13:27 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (76 votes). Check out past polls.