Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Error using Net::SFTP

by kprasanna_79 (Hermit)
on Oct 26, 2006 at 14:52 UTC ( [id://580780]=perlquestion: print w/replies, xml ) Need Help??

kprasanna_79 has asked for the wisdom of the Perl Monks concerning the following question:

Revered Monks,

I am trying to use the module Net::SFTP and i am getting the following error.

Error using Net::SFTP, Reading configuration data d://.ssh/config Reading configuration data /etc/ssh_config Connecting to stage.com, port 22. Remote version string: SSH-1.99-OpenSSH_3.9p1 Remote protocol version 1.99, remote software version OpenSSH_3.9p1 Net::SSH::Perl Version 1.30, protocol version 1.5. No compat match: OpenSSH_3.9p1. Can't set socket non-blocking: Bad file descriptor at D:/apps/site/lib +/Net/SSH/P erl.pm line 216.

Also when i try to use the Net::SFTP::Foreign i am getting the following error

sftp: Sending SSH2_FXP_INIT reading from ssh pipe failed () at test1.pl line 14

If any body throws light on this issue will be appreciated


Update:- This error i am getting when used in windows and perl version 5.8.8

-Prasanna.K

Replies are listed 'Best First'.
Re: Error using Net::SFTP
by grep (Monsignor) on Oct 26, 2006 at 15:30 UTC
Re: Error using Net::SFTP
by Khen1950fx (Canon) on Oct 29, 2006 at 00:07 UTC
    Just a couple of observations. I've noticed that there are some significant incompatibilites between Net::SFTP and Net::SFTP::Foreign. If you look at Net::SFTP, it's built on top of Net::SSH::Perl, which is non-forking. Net::SFTP::Foreign is forking. Also, Net::SFTP allows passwords---Net::SFTP::Foreign doesn't. But the biggest drawback to Net::SFTP::Foreign that I can see is that it isn't compatible with Net::SFTP anymore ( as of version 0.90_13 ).
        Hi, salva. I haven't found any bugs in Net::SFTP::Foreign::Compat. I'm thinking that it's probably something in the way my system is set up. If I find anything, I'll get back to you:)
Re: Error using Net::SFTP
by pKai (Priest) on Oct 28, 2006 at 20:57 UTC

    IIRC I saw the same error message when I tried to use that module a while ago.

    My problems where solved when I ppm-installed from the soulcage repository.

    That web site seems to be out of operation at the moment. You can still review the cached page on google addressing the problem(s)...

Re: Error using Net::SFTP
by SheridanCat (Pilgrim) on Oct 28, 2006 at 03:30 UTC
    You're going down the right road with Net::SFTP::Foreign. Make sure you have an sftp client loaded locally (I found Cywin's sftp client works fine). Then post some code and we can probably point you in the right direction.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://580780]
Approved by Corion
Front-paged by andyford
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-19 22:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found