Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: How to set up CPAN shell

by fluxion (Monk)
on Jun 10, 2004 at 07:12 UTC ( [id://363003]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://363003]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2024-04-24 08:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found