In the CPAN shell:
cpan> install Net::SSH::Perl
Like I said, the ? command gives a summary for using the shell, and perldoc CPAN has everything about it.
| [reply] [d/l] |
Yes, it works fine!
I had selected wrong cipher, how do I change it now?
Nalina
| [reply] |
| [reply] [d/l] [select] |
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
| [reply] |