Skip Menu |

This queue is for tickets about the Net-OpenSSH CPAN distribution.

Report information
The Basics
Id: 70561
Status: rejected
Priority: 0/
Queue: Net-OpenSSH

People
Owner: Nobody in particular
Requestors: palehose [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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
Download (untitled)
application/pgp-signature 198b

Message body not shown because it is not plain text.

Subject: Re: [rt.cpan.org #70561] unable to establish master SSH connection: bad ssh master
Date: Mon, 29 Aug 2011 00:26:27 -0700 (PDT)
To: "bug-Net-OpenSSH [...] rt.cpan.org" <bug-Net-OpenSSH [...] rt.cpan.org>
From: Salvador Fandino <sfandino [...] yahoo.com>
You probably have some ssh wrapper installed on your machine. Try passing the full path to the ssh command in the constructor:   my $ssh = Net::OpenSSH->new(...,                               ssh_cmd => '/usr/bin/ssh'); Show quoted text
>________________________________ >From: Erik Johnson via RT <bug-Net-OpenSSH@rt.cpan.org> >To: >Sent: Sunday, August 28, 2011 10:09 PM >Subject: [rt.cpan.org #70561] unable to establish master SSH connection: bad ssh master > >Sun Aug 28 16:09:24 2011: Request 70561 was acted upon. >Transaction: Ticket created by palehose@gmail.com >      Queue: Net-OpenSSH >    Subject: unable to establish master SSH connection: bad ssh master >  Broken in: (no value) >    Severity: (no value) >      Owner: Nobody >  Requestors: palehose@gmail.com >      Status: new >Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=70561 > > > >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 > > > > >
Subject: Re: [rt.cpan.org #70561] unable to establish master SSH connection: bad ssh master
Date: Mon, 29 Aug 2011 07:51:33 -0400
To: bug-Net-OpenSSH [...] rt.cpan.org
From: Erik Johnson <palehose [...] gmail.com>
I do, and I completely forgot about it. Sorry for wasting your time! -- -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 "Salvador \"Fandiño\" via RT" <bug-Net-OpenSSH@rt.cpan.org> wrote: <URL: https://rt.cpan.org/Ticket/Display.html?id=70561 > You probably have some ssh wrapper installed on your machine. Try passing the full path to the ssh command in the constructor: my $ssh = Net::OpenSSH->new(..., ssh_cmd => '/usr/bin/ssh'); Show quoted text
>_____________________________________________
Show quoted text
>From: Erik Johnson via RT <bug-Net-OpenSSH@rt.cpan.org> >To: >Sent: Sunday, August 28, 2011 10:09 PM >Subject: [rt.cpan.org #70561] unable to establish master SSH connection: bad ssh master > >Sun Aug 28 16:09:24 2011: Request 70561 was acted upon. >Transaction: Ticket created by palehose@gmail.com > Queue: Net-OpenSSH > Subject: unable to establish master SSH connection: bad ssh master > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: palehose@gmail.com > Status: new >Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=70561 > > > >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: > >_____________________________________________
Show quoted text
> >#!/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; > >_____________________________________________
Show quoted text
> >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 > > > > >