I posted the question on another forum but did not get an answer...
The script supposed to run on my server and executing command remotely(over ssh) on a customer server.
The problem is that I don't have exactly the same platform as a customer OS to test connectivity over ssh. It works on my test servers fine but when working in front of customer server it exits with following:
"Received disconnect message: No pty allocated, pty required with Telnet SSH at /usr/cti/apps/CSPbase/Perl/lib/perl5/site_perl/5.8.8/Net/SSH/Perl/SSH2.pm line 300"
When executing ssh on command line in front of this server, its working...
$ssh = Net::SSH::Perl->new($ip);
$ssh->login($remoteUser, $remotePass) ;
($stdout, $stderr, $exit) = $ssh->cmd($cmd);
what could be an issue here?