Skip Menu |

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

Report information
The Basics
Id: 79878
Status: rejected
Priority: 0/
Queue: Net-SFTP-Foreign

People
Owner: Nobody in particular
Requestors: LOOFORT [...] cpan.org
Cc:
AdminCc:

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



I tried to use proxy via script like this: my $sftp = Net::SFTP::Foreign->new( host => $server, user => $user, password => $password, more => [-o => "ProxyCommand ./proxify.pl --host %h --port %p" ]); and found that remote server responses: "The authenticity of host 'host.com (<no hostip for proxy command>)' can't be established...RSA key fingerprint is eb:30:ce:1a:...3a:0a:c6:27:60...Are you sure youwant to continue connecting (yes /no)?" And ufter that the Net::SFTP::Foreign fall down with error: "unless the authenticity of the target host can't be established, the remote host public key is probably not present on the '~/.ssh/known_hosts' file" ---- Also I tried manually connect to host.com (fo reason if insertion public key to known_hosts). but nothing changes. Maybe it some issue with ssh when using proxy, don't know. So I propose to add parameter to say 'yes' to pty see attached diff file for Net::SFTP::Foreign::Backend::Unix module.
Subject: Unix.diff
223a224 > my $force_auth = delete $opts->{force_auth}; 293c294,300 < $sftp->_conn_failed("the authenticity of the target host can't be established, " . --- > > if ($force_auth and $buffer =~ /\?$/) { > print $pty "yes\n"; > next; > } > > $sftp->_conn_failed("the authenticity of the target host can't be established, " .
Subject: Re: [rt.cpan.org #79878]
Date: Fri, 28 Sep 2012 01:47:37 -0700 (PDT)
To: "bug-Net-SFTP-Foreign [...] rt.cpan.org" <bug-Net-SFTP-Foreign [...] rt.cpan.org>
From: Salvador Fandino <sfandino [...] yahoo.com>
Show quoted text
----- Original Message -----
> From: ilya kandrashou via RT <bug-Net-SFTP-Foreign@rt.cpan.org> > To: > Cc: > Sent: Thursday, September 27, 2012 3:21 PM > Subject: [rt.cpan.org #79878] > >T hu Sep 27 09:21:01 2012: Request 79878 was acted upon. > Transaction: Ticket created by LOOFORT >       Queue: Net-SFTP-Foreign >     Subject: (No subject given) >   Broken in: (no value) >     Severity: (no value) >       Owner: Nobody >   Requestors: LOOFORT@cpan.org >       Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=79878 > > > > I tried to use proxy via script like this: >     my $sftp = Net::SFTP::Foreign->new( >         host => $server, >         user => $user, >         password => $password, >         more => [-o => "ProxyCommand ./proxify.pl --host %h --port > %p" ]); > > and found that remote server responses: > "The authenticity of host 'host.com (<no hostip for proxy
> command>)'
> can't be established...RSA key fingerprint is > eb:30:ce:1a:...3a:0a:c6:27:60...Are you sure youwant to continue > connecting (yes /no)?" > > And ufter that the Net::SFTP::Foreign fall down with error: > "unless the authenticity of the target host can't be established, the > remote host public key is probably not present on the > '~/.ssh/known_hosts' file" > ---- > > Also I tried manually connect to host.com (fo reason if insertion public > key to known_hosts). but nothing changes. Maybe it some issue with ssh > when using proxy, don't know.
That should work. Could you manually connect to the remote host adding -vvv into the ssh command line and send me the output?
> So I propose to add parameter to say 'yes' to pty > see attached diff file for  Net::SFTP::Foreign::Backend::Unix module.
That's not required, just pass '-oStrictHostKeyChecking=no' to ssh via the more option and it should do.
rejecting as OP has not replied to it for two months