Skip Menu |

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

Report information
The Basics
Id: 87013
Status: new
Priority: 0/
Queue: Net-OpenSSH

People
Owner: Nobody in particular
Requestors: sfandino [...] yahoo.com
Cc:
AdminCc:

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



Subject: Re: [p5-Net-OpenSSH] Do not read default SSH configuration files by default (#5)
Date: Thu, 18 Jul 2013 06:28:45 -0700 (PDT)
To: salva/p5-Net-OpenSSH <reply+i-16918812-1b570dc7722a126bbf457483be1c41a18af07dc0-84854 [...] reply.github.com>
From: Salvador Fandino <sfandino [...] yahoo.com>
Show quoted text
>________________________________ > From: Philippe Bruhat (BooK) <notifications@github.com> >To: salva/p5-Net-OpenSSH <p5-Net-OpenSSH@noreply.github.com> >Sent: Thursday, July 18, 2013 3:08 PM >Subject: [p5-Net-OpenSSH] Do not read default SSH configuration files by default (#5)
Loading the default OpenSSH configuration files is a feature many people relies on. It is too late to change that behavior now. I will add a flag to dissable it, though. In any case, could you show me your configuration file? I would like know which configurations are breaking Net::OpenSSH. There may be some way to workaround your specific issues. Show quoted text
> >I have a fairly large ~/.ssh/config file, and that prevented Net::OpenSSH to work for me (I think because I already use a control master by default, and that caused the master pid to be different from the one expected by Net::OpenSSH). >Right now, my fix is the following: >my $ssh = Net::OpenSSH->new( $host, master_opts      => [ -F => '/dev/null' ], default_ssh_opts => [ -F => '/dev/null' ],
); Show quoted text
>Since openssh clients accepts several -F options, I would suggest that -F /dev/null is added to the default list of options for both master and slaves, and that the documentation or FAQ documents that, if one want to use a specific configuration file, they should explicitely document it, using the above technique. >Examples from the command-line, to support my case: >    * default: >$ ssh -v nope
OpenSSH_6.0p1 Debian-4, OpenSSL 1.0.1e 11 Feb 2013 debug1: Reading configuration data /home/book/.ssh/config debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options for * ssh: Could not resolve hostname nope: Name or service not known Show quoted text
>    * no config file: >$ ssh -v -F /dev/null nope
OpenSSH_6.0p1 Debian-4, OpenSSL 1.0.1e 11 Feb 2013 debug1: Reading configuration data /dev/null ssh: Could not resolve hostname nope: Name or service not known Show quoted text
>    * explicit config file: >$ ssh -v -F /dev/null -F ~/.ssh/config nope
OpenSSH_6.0p1 Debian-4, OpenSSL 1.0.1e 11 Feb 2013 debug1: Reading configuration data /home/book/.ssh/config ssh: Could not resolve hostname nope: Name or service not known Show quoted text
>— >Reply to this email directly or view it on GitHub. > >