An update: I got frustrated with getting this working in AIX, and so instead moved to a Linux box (which is a less-optimal environment for me to work in for reasons I won't get into here) and reinstalled a newer version of Perl there. However, Net::OpenSSH ended up failing with almost an identical error! "muxserver_listen bind(): Operation not permitted".

Since this is a more common error, a Google search turned up more information. It turns out that, as salva guessed earlier, the unix socket could not be created under ~/.libnet-openssh-perl. However, the problem wasn't a permission one but, since my home directory is in AFS, AFS doesn't permit the creation of sockets.

So I'm now trying the following:

my $ssh = Net::OpenSSH->new('username@hostname', strict_mode => 0, ctl_dir => "/tmp/.libnet-openssh-perl");

...and this works! Of course, I'm running without strict mode, which is supposedly insecure (which I don't understand since if .libnet-openssh-perl prohibits others from writing to the directory, what good forcing all ancestors to also prohibit writing to their directory gains, but I'm not a security expert). But it's either that or not run Net::OpenSSH at all since the AFS directories exist (at least in part) so I don't need to be given write access to anywhere local on the box (besides /tmp, which gives write access to everyone).


In reply to Re: Net::OpenSSH connection failing with 'muxserver_listen bind(): Not owner' by Only1KW
in thread Net::OpenSSH connection failing with 'muxserver_listen bind(): Not owner' by Only1KW

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.