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

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

Replies are listed 'Best First'.
Re^3: How to set up CPAN shell
by Zaxo (Archbishop) on Jun 10, 2004 at 07:07 UTC

    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
Re^3: How to set up CPAN shell
by fluxion (Monk) on Jun 10, 2004 at 07:12 UTC
    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