Skip Menu |
 

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

Report information
The Basics
Id: 36267
Status: open
Priority: 0/
Queue: Net-SSH

People
Owner: Nobody in particular
Requestors: carlos.fuentes [...] rediris.es
RBOWES [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in:
  • 0.01
  • 0.02
  • 0.03
  • 0.04
  • 0.05
  • 0.06
  • 0.07
  • 0.08
  • 0.09
Fixed in: (no value)



Subject: Question about SSH Options
Date: Thu, 29 May 2008 13:06:02 +0200
To: bug-Net-SSH [...] rt.cpan.org
From: Carlos Fuentes Bermejo <carlos.fuentes [...] rediris.es>
Download (untitled) / with headers
text/plain 475b
Hiya, I would like to know if you have in mind to add the behaviour to change the SSH Options, i.e. giving access to @SSH_Options, or giving a method for accessing to this variable. * Net::SSH 0.09 * Perl 5.8.8 * RH 5 Cheers, Carlos -- Carlos Fuentes Bermejo <carlos.fuentes@rediris.es> Security Specialist - IRIS-CERT RedIRIS/Red.es Tel: 91 212 76 20/25 Ext: 5583 www.rediris.es - http://www.rediris.es/cert PGP key: http://www.rediris.es/keyserver
Download PGP.sig
application/pgp-signature 194b

Message body not shown because it is not plain text.

From: ivan-pause [...] 420.am
Download (untitled) / with headers
text/plain 1002b
On Thu May 29 07:07:12 2008, persequitore wrote: Show quoted text
> Hiya, > > I would like to know if you have in mind to add the behaviour to > change the SSH Options, i.e. giving access to @SSH_Options, or giving > a method for accessing to this variable.
I do not anticipate adding features or doing significant future development on the module. The module could really use a maintainer with enough time to at least review and apply more patches. Or the module should just be deprecated in favor of Net::SSH::Expect or made into an ::Any style compatibility wrapper that uses whatver implementation is avaialble (Net::SSH2, Net::SSH::Perl or shelling out like the module does now). Show quoted text
> * Net::SSH 0.09 > * Perl 5.8.8 > * RH 5 > > Cheers, > Carlos > -- > Carlos Fuentes Bermejo <carlos.fuentes@rediris.es> > Security Specialist - IRIS-CERT > RedIRIS/Red.es > Tel: 91 212 76 20/25 Ext: 5583 > www.rediris.es - http://www.rediris.es/cert > PGP key: http://www.rediris.es/keyserver > >
Subject: Re: [rt.cpan.org #36267] Question about SSH Options
Date: Thu, 29 May 2008 23:37:09 +0200
To: bug-Net-SSH [...] rt.cpan.org
From: Carlos Fuentes Bermejo <carlos.fuentes [...] rediris.es>
Download (untitled) / with headers
text/plain 1.4k
Hiya, Many thanks for your reply. Cheers, Carlos El 29/05/2008, a las 18:49, Ivan Kohler via RT escribió: Show quoted text
> > <URL: http://rt.cpan.org/Ticket/Display.html?id=36267 > > > On Thu May 29 07:07:12 2008, persequitore wrote:
>> Hiya, >> >> I would like to know if you have in mind to add the behaviour to >> change the SSH Options, i.e. giving access to @SSH_Options, or giving >> a method for accessing to this variable.
> > I do not anticipate adding features or doing significant future > development on the module. > > The module could really use a maintainer with enough time > to at least review and apply more patches. Or the module should > just be > deprecated in favor of Net::SSH::Expect or made into an ::Any style > compatibility wrapper that uses whatver implementation is avaialble > (Net::SSH2, Net::SSH::Perl or shelling out like the module does now). > > > > >
>> * Net::SSH 0.09 >> * Perl 5.8.8 >> * RH 5 >> >> Cheers, >> Carlos >> -- >> Carlos Fuentes Bermejo <carlos.fuentes@rediris.es> >> Security Specialist - IRIS-CERT >> RedIRIS/Red.es >> Tel: 91 212 76 20/25 Ext: 5583 >> www.rediris.es - http://www.rediris.es/cert >> PGP key: http://www.rediris.es/keyserver >> >>
> > > >
-- Carlos Fuentes Bermejo <carlos.fuentes@rediris.es> Security Specialist - IRIS-CERT RedIRIS/Red.es Tel: 91 212 76 20/25 Ext: 5583 www.rediris.es - http://www.rediris.es/cert PGP key: http://www.rediris.es/keyserver
Download PGP.sig
application/pgp-signature 194b

Message body not shown because it is not plain text.

RT-Send-CC: ivan-pause [...] 420.am
Download (untitled) / with headers
text/plain 870b
I too would like to set arbitrary ssh options. My use case is that I am using ssh_cmd to do something like this: ssh $src_host "ssh $dst_host 'tar xvpi -C $dst_dir' < '$src_file'" I've found that, with the default Net::SSH options, if I kill the script that made the ssh_cmd call then the remote ssh and tar processes keep running. "-T" is the culprit. I need to set "-t -t". I hacked it by adding code to my module that calls ssh_cmd as follows: @Net::SSH::ssh_options = grep(!/-T/, &Net::SSH::_ssh_options); push @Net::SSH::ssh_options, '-t', '-t'; However, it would be preferable to actually surface these options through a proper API, rather than poking around in Net::SSH internals. I've sent a mail to Ivan offering to take on co-maintainer for this module and would be happy to add some mechanism to allow setting of arbitrary ssh options. R.
Download (untitled) / with headers
text/plain 640b
On Wed May 11 18:24:35 2011, RBOWES wrote: Show quoted text
> I've sent a mail to Ivan offering to take on co-maintainer for this > module and would be happy to add some mechanism to allow setting of > arbitrary ssh options.
The actual code of Net::SSH hasn't been updated on over 7 years. It may be better at this point to focus on more modern alternatives, such as Net::OpenSSH or the modules listed in the SEE ALSO section. I've mostly switched to Net::OpenSSH myself. If none of the other modules fit your needs and you _really_ do want to revive Net::SSH, I guess so.. I would be curious to know why none of the other modules worked out. Ivan
Show quoted text
> The actual code of Net::SSH hasn't been updated on over 7 years. > > It may be better at this point to focus on more modern alternatives, > such as Net::OpenSSH or the modules listed in the SEE ALSO section. > I've mostly switched to Net::OpenSSH myself. > > If none of the other modules fit your needs and you _really_ do want
to Show quoted text
> revive Net::SSH, I guess so.. I would be curious to know why none of > the other modules worked out.
Net::SSH just worked for me - with one niggling problem that I fixed by hacking the @ssh_options array as listed above. Net::SSH::Perl wouldn't install easily on CentOS 5.6 (ie. yum install perl-Net-SSH-Perl didn't work) Net::OpenSSH is rather implementation-specific. I don't have many non-OpenSSH boxes, but I have a couple. I need to work on all platforms. I didn't bother trying it for that reason. I don't actually need to add/change anything about Net::SSH at this stage - it's working for me with the above hack. I just thought it might be useful to others to add a few changes. R.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.