in reply to un-inplemented function in Net::SSH::Perl for Activestate Perl?

First off, Thank you BrowserUK and Syphilis for trying to help me!

BrowserUK:
I tried your suggestions of modifying the source for net/ssh/perl.pm (using the environment method). It no longer complains about the function. However, it then stopped when trying to set the socket non-blocking. After doing some research, I found that you can not do that on windows. I commented out this line as well. Now the program actually runs, but does not run successfully. What happens now is that it connects up and sends the username and password pair. It never returns from when it sends the commands, just sits there and hangs forever (or at least the hour I waited for the ls command) I am not sure what to try after this but I have the same problem using Syp's suggestion.

Syphilis:
I tried your suggestion as well. Stepping through the program, it connects to the server, sends the username and password to log in, then sends the command down the socket. This has the same issue as Net::SSH::Perl after Browsers mods. It never returns from sending down the command. I do not know if the linux box can handle ssh2 but it is Red-Hat 2.4.26-1.ll.rh90.ccrmasmp SMP. Man SSH has the -s subsystem command for ssh2 but no other mention of it. Unfortunately I can not update this machine.

Any other suggestions? I really appreciate the help.

  • Comment on Re: un-inplemented function in Net::SSH::Perl for Activestate Perl?

Replies are listed 'Best First'.
Re^2: un-inplemented function in Net::SSH::Perl for Activestate Perl?
by BrowserUk (Patriarch) on Apr 11, 2006 at 11:34 UTC
    However, it then stopped when trying to set the socket non-blocking. After doing some research, I found that you can not do that on windows.

    Actually, you can. See the replies to Non-blocking socket read on Windows, in particular salva's reply and the links.

    However, it doesn't sound as if that is really your problem, though it might time out the failure to communicate if the port was set non-blocking.

    I know naff all about SSH. I've only ever used it through a terminal emulator and it "just worked".


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.