Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

How do I connect to cisco pix via ssh?

by jepri (Parson)
on Jun 07, 2004 at 05:57 UTC ( #361888=note: print w/ replies, xml ) Need Help??


in reply to How do I connect to cisco pix via ssh?

You'll have to be more specific with your error messages. "it didn't work" could mean anything from "it didn't install" to "my computer caught fire".

Assuming you get it installed, it looks like you should be able to cut and paste the example from the documentation, add the right username and password, and have it work.

You can use ssh itself if you have cygwin installed, but I don't think that is the solution you were looking for.

___________________
Jeremy
I didn't believe in evil until I dated it.


Comment on How do I connect to cisco pix via ssh?
Re^2: How do I connect to cisco pix via ssh?
by Nalina (Monk) on Jun 07, 2004 at 06:19 UTC
    Hi

    Thanks for the reply.

    I downloaded Perl.pm (Net::SSH::Perl) module and tried to connect to remote cisco pix through ssh Following is my script

    use Net::SSH::Perl; $host="IP"; $username = "username"; $pass = "password"; my $ssh = Net::SSH::Perl->new("$host"); $ssh->login($username, $pass); my($stdout, $stderr, $exit) = $ssh->cmd(sh access-list access_inside_i +n); print "output: $stdout\n"; print "Error: $stderr\n"; print "status: $exit\n";
    But while installing GMP with nmake

    perl Makefile.PL

    nmake

    nmake test

    I got an error saying

    'cl' is not recognized as an internal or external command, operable program or batch file. NMAKE : fatal error U1077: 'C:\WINNT\system32\cmd.exe' : return code '0x1' Stop.

    what do i do now?

    Thanks

    Nalina

    Edited by Chady -- added code tags.

      See tachyon's comment below for the right module.

      On Windows, you want to use PPM instead of CPAN. CPAN only works if you have a full C compiler environment on your system, and most windows boxes don't. If you are using ActiveState Perl (most likely), you should use PPM, there is a FAQ to help get you started.

      ___________________
      Jeremy
      I didn't believe in evil until I dated it.

        I tried to install GMP with ppm but got an error saying

        Error: Failed to download URL http://prdownloads.sourceforge.net/nettelnetcisco/ GMP.ppd: 404 Not Found

        Thanks and Regards

        Nalina

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2014-08-21 11:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (134 votes), past polls