in reply to ssh on windows

Please read in your other thread on the same about things that can go wrong, and give us details about the remote machine (OS? version? ssh version?) and your environment there (login shell?). Are you able to login with e.g putty?

Also, try sending a single command without arguments, e.g. ls or pwd.

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}

Replies are listed 'Best First'.
Re^2: ssh on windows
by veeruch (Sexton) on Jul 05, 2006 at 07:58 UTC
    os is AIX 5.2 and Net::SSH::Perl Version 1.29, protocol version 2.0.
    yes iam login with Putty and do the things also ..
      What is your login shell? (type echo $SHELL at the command line prompt)

        if iam using Net::SSH::Perl in Windows (Active State Perl)

        use Net::SSH::Perl; my $ssh = Net::SSH::Perl->new('somehost',debug=>1); $ssh->login('user', 'passwd'); my($stdout, $stderr, $exit) = $ssh->cmd($cmd);

        indamaaaf31786: Reading configuration data /.ssh/config
        indamaaaf31786: Reading configuration data /etc/ssh_config
        indamaaaf31786: Connecting to host, port 22.
        indamaaaf31786: Remote protocol version 2.0, remote software version OpenSSH_3.7.1p2-pwexp26
        indamaaaf31786: Net::SSH::Perl Version 1.29, protocol version 2.0.
        indamaaaf31786: No compat match: OpenSSH_3.7.1p2-pwexp26. Can't set socket non-blocking: at
        E:/perl/site/lib/Net/SSH/Perl.pm line 212, <GEN0> line 1.

        echo $SHELL
        /usr/bin/ksh