I have some programs that use the Net::Telnet module to connect to several servers. Now the administrators have decided to replace the Telnet service for SSH, keeping everything else like before (for example the user accounts)
I’ve taken a look at Net::SSH2 and I see that I would have to change most part of the programs. Do you know of other SSH modules, better suited for this same replacement?
The client is a Windows box (ActiveState Perl or Cygwin Perl)
Thanks for your suggestions, but I finally used Net::SSH::Perl on ActivePerl for Windows
Pros:
$host->closeyou can do$host->cmd("exit")Cons:
cmd()call has a different state, for example it doesn’t keep the current directory between calls, like Net::Telnet didcmd("su - user")doesn’t work, butcmd("su - user -c 'commands'")does