in reply to Problem in enabling authentication after logging in to a firewall

I assume you can do this manually with 'ssh'. In that case you might want to try Expect, to handle talking to 'ssh' from perl.

Update: a good tutorial: Using Expect.pm to Manage an Unreliable Program

  • Comment on Re: Problem in enabling authentication after logging in to a firewall

Replies are listed 'Best First'.
Re^2: Problem in enabling authentication after logging in to a firewall
by Nalina (Monk) on Jun 11, 2004 at 06:34 UTC
    I could log in to the remote firewall But am not able to execute any command. with debug action, it is getting struck at the last line of the following

    Linux: Reading configuration data /root/.ssh/config

    Linux: Reading configuration data /etc/ssh_config

    Linux: Allocated local port 1023.

    Linux: Connecting to 203.91.132.111, port 22.

    Linux: Remote protocol version 1.5, remote software version Cisco-1.25

    Linux: Net::SSH::Perl Version 1.25, protocol version 1.5.

    Linux: No compat match: Cisco-1.25.

    Linux: Connection established.

    Linux: Waiting for server public key.

    Linux: Received server public key (768 bits) and host key (2048 bits).

    Linux: Host '203.91.132.111' is known and matches the host key.

    Linux: Encryption type: DES

    Linux: Sent encrypted session key.

    Linux: Received encryption confirmation.

    Linux: Trying password authentication.

    Linux: Sending command: ?

    Linux: Entering interactive session.

    What do I do now?

    Thanks

    Nalina