gdanenb has asked for the wisdom of the Perl Monks concerning the following question:
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::SSH::Perl returns error on pty allocation
by Khen1950fx (Canon) on Mar 03, 2013 at 12:25 UTC | |
by gdanenb (Acolyte) on Mar 03, 2013 at 13:37 UTC | |
by Khen1950fx (Canon) on Mar 03, 2013 at 16:41 UTC | |
by gdanenb (Acolyte) on Mar 05, 2013 at 12:19 UTC |