in reply to Re^3: How to set up CPAN shell
in thread How to set up CPAN shell

Yes, it works out fine!

I have other problem

my script to access firewall is as follows

use Net::SSH::Perl;

$host="ip";

$username = "username";

$pass = "password";

$ssh=Net::SSH::Perl->new($host, debug=>1, cipher=>'DES', port =>22);

$ssh->login($username, $pass);

my(@arra) = $ssh->cmd("?");

print "output: $arra\n";

When I execute this script, I could log in successfully but could not enter interactive session.

I want to execute 'sh access_list access_list_name' command. But how do I enable authentication after logging in?

Thanks & Regards

Nalina