in reply to Re^3: Help...Issue with Net::SSH::Perl Module
in thread Help...Issue with Net::SSH::Perl Module

thanks for your reply. yes, i ran the same script on Linux, it works fine, it can connect to the remote host and execute all the commands i sent. but on Windows, it can't. The target host is a Linux machine.
I have SSH, putty and SecureCRT on my Windows, they all work fine.
yes, it can login, but when executing the comand, it hangs. very strange, if i change the command as this: $ssh->cmd("ls -al > /dev/null","\n"), then it works. but i can not do that, i want the output of the command.

Replies are listed 'Best First'.
Re^5: Help...Issue with Net::SSH::Perl Module
by Khen1950fx (Canon) on Nov 26, 2010 at 07:29 UTC
    This might solve your problem.
      That link logs folks out Khen1950fx, use [id://758068|This]