Cisco SSH Switches Plugin- Can some one please decode this error message?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Welcome Idira to LIVEcommunity!

Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.

Meet Idira

Cisco SSH Switches Plugin- Can some one please decode this error message?

L4 Transporter

================================================================================

10/05/2022 12:54:37.415 | 5/10/2022 12:54:37 PM

10/05/2022 12:54:37.415 | ================================================================================

10/05/2022 12:54:37.415 | 

10/05/2022 12:54:37.415 | Info -> bf :: b -> TPC Version: 12.5.0.14

10/05/2022 12:54:38.024 | Info -> CasosDecryptor :: criptolibConstDecryptEX -> START

10/05/2022 12:54:38.118 | Info -> CasosDecryptor :: criptolibConstDecryptEX -> END

10/05/2022 12:54:38.118 | Info -> CasosDecryptor :: criptolibConstDecryptEX -> START

10/05/2022 12:54:38.118 | Info -> CasosDecryptor :: criptolibConstDecryptEX -> END

10/05/2022 12:54:38.165 | Info -> MutexHandler :: AcquireMutex -> Start

10/05/2022 12:54:38.165 | Info -> MutexHandler :: GetMutex -> Start

10/05/2022 12:54:38.165 | Info -> MutexHandler :: GetExistingMutex -> Trying to open 'HeavyCodeSection' mutex

10/05/2022 12:54:38.165 | Info -> MutexHandler :: GetMutex -> Trying to create 'HeavyCodeSection' mutex

10/05/2022 12:54:38.165 | Info -> MutexHandler :: GetMutex -> mutex 'HeavyCodeSection' creation succeeded

10/05/2022 12:54:38.165 | Info -> MutexHandler :: GetMutex -> End

10/05/2022 12:54:38.165 | Info -> MutexHandler :: AcquireMutex -> mutex 'HeavyCodeSection' ownership succeeded

 

10/05/2022 12:54:39.290 | Info -> bx :: c -> END

10/05/2022 12:54:39.290 | Info -> bf :: c -> continuing to next state Init

10/05/2022 12:54:39.290 | Info -> bx :: c -> END

10/05/2022 12:54:39.290 | Info -> bf :: c -> *****************************************************************

10/05/2022 12:54:39.290 | Info -> bf :: c -> Init

10/05/2022 12:54:39.290 | Info -> bf :: c -> *****************************************************************

10/05/2022 12:54:39.290 | Info -> l :: l -> START

10/05/2022 12:54:39.290 | Info -> l :: l -> Processing TCL Command (script)set bTarget 0; set verifyLogon 0; set curr_pass "<pmpass>";

10/05/2022 12:54:39.290 | Info -> l :: l -> END

10/05/2022 12:54:39.290 | Info -> bx :: c -> START

10/05/2022 12:54:39.290 | Info -> bx :: b -> Analyzing next state candidate CiscoEnable: '(expression)[string equal -nocase "<Type>" "ciscoenable"]'

10/05/2022 12:54:39.290 | Info -> bx :: b -> Analyzing next state candidate CiscoUser: '(expression)[string equal -nocase "<Type>" "ciscouser"]'

10/05/2022 12:54:39.290 | Info -> bx :: b -> Expression 'CiscoUser' is TRUE, continuing to next state InitCiscoUser

10/05/2022 12:54:39.290 | Info -> bx :: c -> END

10/05/2022 12:54:39.290 | Info -> bf :: c -> *****************************************************************

10/05/2022 12:54:39.290 | Info -> bf :: c -> InitCiscoUser

10/05/2022 12:54:39.290 | Info -> bf :: c -> *****************************************************************

10/05/2022 12:54:39.290 | Warning -> cv :: a -> Secret 'pmextrapass1' does not exist.

10/05/2022 12:54:39.290 | Info -> l :: l -> START

10/05/2022 12:54:39.290 | Info -> l :: l -> Processing TCL Command (script)set enable_pass "<pmextrapass1>";

10/05/2022 12:54:39.290 | Info -> l :: l -> END

10/05/2022 12:54:39.290 | Info -> bx :: c -> START

10/05/2022 12:54:39.290 | Info -> bx :: b -> Analyzing next state candidate TRUE: '(expression)true'

10/05/2022 12:54:39.290 | Info -> bx :: b -> Expression 'TRUE' is TRUE, continuing to next state CheckLoginVars

10/05/2022 12:54:39.290 | Info -> bx :: c -> END

10/05/2022 12:54:39.290 | Info -> bf :: c -> *****************************************************************

10/05/2022 12:54:39.290 | Info -> bf :: c -> CheckLoginVars

****************

10/05/2022 12:54:39.305 | Info -> bf :: c -> CheckProtocol

10/05/2022 12:54:39.305 | Info -> bf :: c -> *****************************************************************

10/05/2022 12:54:39.305 | Info -> bx :: c -> START

10/05/2022 12:54:39.305 | Info -> bx :: b -> Analyzing next state candidate ProtocolIsSSH: '(expression)[string equal -nocase "<Protocol>" "ssh"]'

10/05/2022 12:54:39.305 | Info -> bx :: b -> Expression 'ProtocolIsSSH' is TRUE, continuing to next state StartSessionSSH

10/05/2022 12:54:39.305 | Info -> bx :: c -> END

10/05/2022 12:54:39.321 | Info -> cu :: a -> Host name updated from spawn command:

10/05/2022 12:54:39.321 | Info -> cu :: a -> Port updated from spawn command: 22

10/05/2022 12:54:39.321 | Info -> c :: a -> State machine type was changed from: c to: bg

10/05/2022 12:54:39.321 | Info -> cu :: a -> Host name updated from spawn command: authentication.

10/05/2022 12:54:40.462 | Remote SSH server has presented the following challenge 'Password: '.

10/05/2022 12:54:40.462 | Trying to match the following prompts:

10/05/2022 12:54:40.462 | 1.Password: 'Password:'

10/05/2022 12:54:40.462 | 'Password' is matched.

10/05/2022 12:54:40.462 | Sending: *****

10/05/2022 12:54:45.829 | Info -> MutexHandler :: ReleaseMutex -> Start

10/05/2022 12:54:45.829 | Info -> MutexHandler :: ReleaseMutex -> Release mutex 'HeavyCodeSection'

10/05/2022 12:54:45.829 | Info -> MutexHandler :: ReleaseMutex -> End

10/05/2022 12:54:45.845 | ERROR -> c :: d -> af: Permission denied (password) ---> Renci.SshNet.Common.SshAuthenticationException: Permission denied (password).

  at Expect.NET.SshSpawnable.HandleException(Exception ex)

 

10/05/2022 12:54:45.845 | Info -> bj :: a -> Finish plugin execution

10/05/2022 12:54:45.845 | Info -> bj :: a -> Result: FAILURE

10/05/2022 12:54:45.845 | Info -> bj :: a -> Permission denied (password) RC: 2114

13 REPLIES 13

L0 Member

Seems to be similar to my error, except I can't seem to get the actual login to work, I had at one point gotten the PSM-Putty thing to work properly and can type commands and whatnot, but I could never get the password reconciliation or the password change to work even though my recon and local accounts are all privilege level 15's. I don't use TACACS or RADIUS currently, we want CyberArk to manage our accounts locally.

L0 Member

It's possible that the Cisco plugin is still working, would love to actually see if I can open up a support case and get some resolution on this. Possibly you may need to customize your Cisco SSH Plugin, there's a file on your server called CiscoPrompts.ini and CiscoProcess.ini. Look for those 2 files, however I still am trying to open up a case with Support to see if they have some config changes they need to do in order to get our Cisco switches working again.

L4 Transporter

hi Horton,

thanks for your reply. have opened up a case with CyberArk, will post back once I get resolution.

L7 Applicator

Is this the complete log from a password change? Or is it just the part of the log where the CPM logs in to verify the password after having changed it? If it is the latter, then you need to check the logs as to how exactly the CPM tried to change the password, and why the target system didn't accept it. There seems to be a know issue where the default "Cisco SSH" plugin tries to run commands to set a secret, but the target device disallows it.

L4 Transporter

hi Bernhard,

it was only part of the log. Complete logs cannot be pasted here because of the size. I tried Change password from CPM, and pasting back the last message .

 

13/05/2022 08:43:23.551 | Info -> y :: b -> Trying to connect to <FQDN> using admintest

13/05/2022 08:43:23.551 | Info -> MutexHandler :: AcquireMutex -> Start

13/05/2022 08:43:23.551 | Info -> MutexHandler :: GetMutex -> Start

13/05/2022 08:43:23.551 | Info -> MutexHandler :: GetExistingMutex -> Trying to open 'HeavyCodeSection' mutex

13/05/2022 08:43:23.551 | Info -> MutexHandler :: GetMutex -> Trying to create 'HeavyCodeSection' mutex

13/05/2022 08:43:23.551 | Info -> MutexHandler :: GetMutex -> mutex 'HeavyCodeSection' creation succeeded

13/05/2022 08:43:23.551 | Info -> MutexHandler :: GetMutex -> End

13/05/2022 08:43:23.551 | Info -> MutexHandler :: AcquireMutex -> mutex 'HeavyCodeSection' ownership succeeded

13/05/2022 08:43:23.551 | Info -> MutexHandler :: AcquireMutex -> End

13/05/2022 08:43:24.349 | Getting stored fingerprint for 'ssh-rsa@22:durlabprdclu01sw02a.mgmt.fslab.ntap'.

13/05/2022 08:43:24.349 | 'ssh-rsa@22:<FQDN>' fingerprint is a match.

13/05/2022 08:43:24.599 | Performing keyboard-interactive challenge-response authentication.

13/05/2022 08:43:24.599 | Remote SSH server has presented the following challenge 'Password: '.

13/05/2022 08:43:24.599 | Trying to match the following prompts:

13/05/2022 08:43:24.599 | 1.Password: 'Password:'

13/05/2022 08:43:24.599 | 'Password' is matched.

13/05/2022 08:43:24.599 | Sending: *****

13/05/2022 08:43:28.892 | Info -> MutexHandler :: ReleaseMutex -> Start

13/05/2022 08:43:28.892 | Info -> MutexHandler :: ReleaseMutex -> Release mutex 'HeavyCodeSection'

13/05/2022 08:43:28.892 | Info -> MutexHandler :: ReleaseMutex -> End

13/05/2022 08:43:28.908 | ERROR -> c :: d -> af: Permission denied (password) ---> Renci.SshNet.Common.SshAuthenticationException: Permission denied (password).

  at Expect.NET.SshSpawnable.HandleException(Exception ex)

  at Expect.NET.SshSpawnable.Connect()

  at Expect.NET.SshSpawnable.Init()

  at Expect.NET.APISpawnable.Init(IReadOnlyDictionary`2 settings)

  at Expect.NET.Expect.Spawn(ISpawnable spawnable, IReadOnlyDictionary`2 settings)

  at y.c()

  --- End of inner exception stack trace ---

  at y.b(Exception A_0)

  at y.c()

  at y.b()

  at x.CreateSession()

  at e.a()

  at bg.b(bt A_0, b2 A_1, s A_2)

  at bg.a(bt& A_0, b2 A_1)

  at bg.a(IList`1 A_0, bt A_1)

  at bg.i(IList`1 A_0, bt A_1)

  at e.a(IList`1 A_0)

  at e.a(bt A_0)

  at e.h(bt A_0, s A_1)

  at c.c(bt A_0)

  at c.a(bt A_0, df A_1)

  at c.a(s A_0, bt A_1)

  at c.c(bt A_0)

  at c.d()

13/05/2022 08:43:28.908 | Info -> bj :: a -> Finish plugin execution

13/05/2022 08:43:28.908 | Info -> bj :: a -> Result: FAILURE

13/05/2022 08:43:28.908 | Info -> bj :: a -> Permission denied (password) RC: 2114

13/05/2022 08:43:28.908 | Info -> bf :: b -> |---------------------------------------|

13/05/2022 08:43:28.908 | Info -> bf :: b -> Plugin Execution END

13/05/2022 08:43:28.908 | Info -> bf :: b -> |---------------------------------------|

13/05/2022 08:43:28.908 | Info -> MutexHandler :: ReleaseMutex -> Start

13/05/2022 08:43:28.908 | Info -> MutexHandler :: ReleaseMutex -> End

Hi @Piyush Jain​ 

 

Check if there is a "/" or "\" in the old password. Exclude the "/" and "\" characters or try to escape them if possible.

Hi @Piyush Jain​ 

 

Check if there is a "/" or "\" in the old password. Exclude the "/" and "\" characters or try to escape them if possible.

L0 Member

Hi @Piyush Jain​,

Did you got resolution for the issue, if yes please can you share it.

 

Thanks.

Hi @Piyush Jain​,

I'm interested in the solution as well!

We have placed an order to develop new one. The default available on the market place doesn’t work unfortunately ☹ Regards, Piyush

L2 Linker

I think it's trying to logon and change itself instead of using the reconcile/logon account. Please try setting "ChangePasswordInResetMode" to yes, then retry. This then forces the plugin to utilize the logon/reconcile account for updating the account's password. Previously this only worked for Windows, but it actually works for Linux plugins now as well starting in 10.1+ apparently.

https://community.cyberark.com/s/article/Change-Password-In-Reset-Mode .

See my comment below

L2 Linker

Alternatively, try updating the process/prompts file as I did in my blog for another purpose (see below). The way the process/prompts is written for this plugin is that it's using the linked account's address and port etc, instead of the target account's information. Anyways, hope that helps.

 

https://medium.com/@aglerj/update-cyberark-cisco-router-ssh-cpm-plugin-to-utilize-domain-account-1bef28f3d653

  • 1156 Views
  • 13 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!