Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support of IPv6 in Net::SSH::Perl.pm #49

Open
briandfoy opened this issue Jul 10, 2023 · 2 comments
Open

Support of IPv6 in Net::SSH::Perl.pm #49

briandfoy opened this issue Jul 10, 2023 · 2 comments
Labels
imported from rt.cpan.org Priority: high work on this first RT: checked Verified the RT import Status: has fix in RT The original RT queue has a fix

Comments

@briandfoy
Copy link
Owner

briandfoy commented Jul 10, 2023

This ticket was imported from rt.cpan.org 106718


Hi,

I have the RPM "perl-Net-SSH-Perl-1.37" installed on my Linux box.

I am trying to use the Net::SSH::Perl.pm to SSH to the remote machine, which is configured on IPv6.

The request fails with the error "ERROR: Net::SSH: Bad host name: at /usr/local/share/perl5/Net/SFTP.pm line 61".

In the Perl.pm code, I checked that it is using inet_aton() API in the "_connect()" subroutine. The API inet_aton does not work for IPv6.

I could not find any higher version of this package with the IPv6 support.

My query is that when is the IPv6 support expected in the Perl.pm module? OR Is there any alternate package?

I am using the following versions of these packages.

Net-SFTP-0.10.tar.gz

Net-SSH-Perl-1.37.tar.gz

Thanks and Regards,
Tanu Arya

"DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error, please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. Aricent accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus."

@briandfoy
Copy link
Owner Author

from schwigon@cpan.org


I, for my part, do only co-maintain this module and do not have a clue about IPv6, sorry.

But I just realized there is a talk on current YAPC::EU on Wednesday (today) about an alternative module Net::SSH::Any - http://act.yapc.eu/ye2015/talk/6315 - so I added the author to CC here. Or the original authors can chime in...

Kind regards,
Steffen

@briandfoy
Copy link
Owner Author

from sfandino@yahoo.com


On 09/02/2015 01:17 AM, Steffen Schwigon via RT wrote:

<URL: https://rt.cpan.org/Ticket/Display.html?id=106718 >

I, for my part, do only co-maintain this module and do not have a clue about IPv6, sorry.

But I just realized there is a talk on current YAPC::EU on Wednesday (today) about an alternative module Net::SSH::Any - http://act.yapc.eu/ye2015/talk/6315 - so I added the author to CC here. Or the original authors can chime in...

Kind regards,
Steffen
Hi,

IPv6 is supported in Net::OpenSSH and in the development version of
Net::SSH2
(https://metacpan.org/pod/release/SALVA/Net-SSH2-0.54_01/lib/Net/SSH2.pm).
Net::SSH::Any builds on top of these, so it may probably support IPv6 too.

Steffen, regarding IPv6 support in Net::SSH::Perl, for Net::SSH2 it was
only a matter of replacing IO::Socket::INET by IO::Socket::IP.

@briandfoy briandfoy added Priority: high work on this first Status: has fix in RT The original RT queue has a fix RT: checked Verified the RT import labels Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
imported from rt.cpan.org Priority: high work on this first RT: checked Verified the RT import Status: has fix in RT The original RT queue has a fix
Projects
None yet
Development

No branches or pull requests

1 participant