Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

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

by chenryn (Initiate)
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 (Abbot) 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
Node Status?
node history
Node Type: perlquestion [id://990784]
Approved by herveus
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2018-02-20 14:46 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (271 votes). Check out past polls.