Subject: | unable to establish master SSH connection: bad ssh master |
Date: | Sun, 28 Aug 2011 15:09:09 -0500 |
To: | bug-Net-OpenSSH [...] rt.cpan.org |
From: | Erik Johnson <palehose [...] gmail.com> |
Package/version: Net-OpenSSH-0.52
Perl version: 5.14.1
Operating System: Arch Linux, kernel version 3.0.3
I am unable to connect to any ssh servers using even the simplest of
scripts. Here's an example of the script I am using:
------------------------------------------------------------------------------
#!/usr/bin/perl
use strict;
use warnings;
use Net::OpenSSH;
$Net::OpenSSH::debug = 5;
my $ssh = Net::OpenSSH->new('myhost', user => 'myuser', password => 'mypass');
$ssh->error and die "Couldn't login: " . $ssh->error;
$ssh->system("ls /tmp") or die $ssh->error;
------------------------------------------------------------------------------
However, the script doesn't even get to the ls command. I installed the
latest dev release (0.53_03) and the behavior is unchanged. Below is the
debug output (usernames and IP obfuscated). I can confirm that this is
not file permissions related, as I can write to the directory and socket
path.
I tried searching the web, but the only results I found were in the
module source code itself (which I am just digging into now).
# set_error(0 - 0)
# file object not yet found at /home/myuser/.libnet-openssh-perl/myuser-myhost-8242-878628
# file object not yet found at /home/myuser/.libnet-openssh-perl/myuser-myhost-8242-878628
# file object not yet found at /home/myuser/.libnet-openssh-perl/myuser-myhost-8242-878628
# file object not yet found at /home/myuser/.libnet-openssh-perl/myuser-myhost-8242-878628
# passwd/passphrase requested (myuser@myhost's password:)
# file object not yet found at /home/myuser/.libnet-openssh-perl/myuser-myhost-8242-878628
# file object not yet found at /home/myuser/.libnet-openssh-perl/myuser-myhost-8242-878628
# file object found at /home/myuser/.libnet-openssh-perl/myuser-myhost-8242-878628
# set_error(1 - unable to establish master SSH connection: bad ssh master at /home/myuser/.libnet-openssh-perl/myuser-myhost-8242-878628, socket owned by pid 8245 (pid 8244 expected))
Killed by signal 1.
Couldn't login: unable to establish master SSH connection: bad ssh master at /home/myuser/.libnet-openssh-perl/myuser-myhost-8242-878628, socket owned by pid 8245 (pid 8244 expected) at /home/myuser/bin/rcssh line 20.
--
-Erik
"For me, it is far better to grasp the universe as it really is than to
persist in delusion, however satisfying and reassuring." --Carl Sagan
Message body not shown because it is not plain text.