Link to home
Start Free TrialLog in
Avatar of ashleyd203
ashleyd203

asked on

Cannot use plink with cisco IOS

Hi,

i have tested plink successfully on PX/ASA. However the same command does not work with cisco router.

I need to authenticate with secret before running the command

the command file is as follows:

en
enablepassword
command

I have seen the posts on here, try redirection, spaces between commands but I still get
Line has invalid autocommand " error message.

Is there a solution, please help.

Thanks,

Ashley
Avatar of Ernie Beek
Ernie Beek
Flag of Netherlands image

A few things that come to mind:

Put a space between each command:

en

enablepassword

command


Are you using ssh v1? try v2.

Assign the user you use to login a privilege level of 15 (if you haven't done so already).

I'll add some topics to draw some more attention to this question.
Avatar of ashleyd203
ashleyd203

ASKER

Hi,

I have also tried the same space, same issues. I am using version 1, let me try with version 2.
May be this will help.

Unfortunately, privilege 15 is not allowed in our environment, authentication is done with RADIUS server and AD server.
ASKER CERTIFIED SOLUTION
Avatar of ashleyd203
ashleyd203

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Glad you found a solution :)
I'll keep this in mind for future reference.
Did not get a valid answer but it is more of a constraint than anything. So I used another tool which means also that the initial question may not be related.