[Ssh-sftp-perl-users] Net::SSH::Perl question
Brought to you by:
dbrobins
From: Ivaylo T. <iva...@gm...> - 2009-01-15 15:44:38
|
Hi, I am using following code to connect to Juniper router: my $ssh = Net::SSH::Perl->new($ip, protocol => 2); $ssh->login($user, $pass); foreach (@commands) { my($out, $err, $exit) = $ssh->cmd($_); } but seems that every command in @commands is transmitted in a separate socket connection than the previous despite that the protocol is SSH2. What can I do to send all commands in one single socket connection ? Thank you in advance. |