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 server 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 i 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?