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

You can access the source tree through a normal shell by looking in ~/.cpan/build and installing from there. A more convenient way to do it is to type install Net::SSH::Perl at the cpan shell, which will download and install automatically.


Roses are red, violets are blue. All my base, are belong to you.

Replies are listed 'Best First'.
Re^4: How to set up CPAN shell
by Anonymous Monk on Jun 10, 2004 at 12:29 UTC
    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