in reply to ssh not working

One other note: I'm assuming that you're connecting to a UNIX machine from a Windows Machine, with this one....Otherwise, the example I've given will NOT work! :)

Replies are listed 'Best First'.
Re^2: ssh not working
by veeruch (Sexton) on Jul 04, 2006 at 14:34 UTC

    yes i am connecting from windows to Aix server and Sunsolaris
    copy of files from windows to Aix and SunSolaris servers
    can i use NET::SCP also in NET::SSH::w32Perl?

      Hi. You'd need to use them separately, as advertised on CPAN. However, the overhead, programming wise, is completely minimal. You probably, though, want to avoid having a username/password wired directly into a perl script, I would have thought......!

        thanks you...

        my($stdout, $stderr, $exit) = $ssh->cmd("/bin/bash /bin/ls -lrt");

        still iam getting like this

        indamaaaf31786: Got channel open confirmation, requesting shell.
        indamaaaf31786: Requesting service shell on channel 0.
        indamaaaf31786: channel 1: new client-session
        indamaaaf31786: Requesting channel_open for channel 1.
        indamaaaf31786: Entering interactive session.
        indamaaaf31786: Sending command: /bin/bash /bin/ls -lrt
        indamaaaf31786: Requesting service exec on channel 1.
        indamaaaf31786: channel 1: open confirm rwindow 0 rmax 32768
        indamaaaf31786: input_channel_request: rtype exit-status reply 0
        still busy it is hanging here