in reply to How to set up CPAN shell

At the command prompt, as root, type perl -MCPAN -e shell. If you have never run CPAN.pm before you will be prompted for configuration information. The defaults are usually good. That will do CPAN installations system-wide. If you're dissatisfied with the configuration, the CPAN shell command o conf init will let you try again.

If you can't be root or you want a playground for testing, you'll want a private CPAN setup for your home directory. I gave detailed instructions for setting that up in Re: Personal library with CPAN.

Once in the shell, the '?' command will give a command summary,

After Compline,
Zaxo

Replies are listed 'Best First'.
Re^2: How to set up CPAN shell
by Nalina (Monk) on Jun 10, 2004 at 07:00 UTC
    Thanks for ur reply

    It works fine. I downloaded Net::SSH::Perl module after entering to shell with 'get Net::SSH::Perl' command. But how do i install it now?

    I tried perl makefile.pl, but perl command is not getting recognised in the shell. What do I do now?

    Nalina

      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.

      After Compline,
      Zaxo

        Yes, it works fine!

        I had selected wrong cipher, how do I change it now?

        Nalina
      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.
        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