Hello friends, hope you're all safe and well!
I'm having a problem where automation scripts using NetApp Powershell Toolkit are running successfully, but upon first cluster login triggers an 'invalid ssh login' event confirmed in ontap logs, however all commands complete successfully returning desired data. Functionally, the login error appears to be a false positive because the command completes.
History and t-shooting steps:
This started happening on multiple clusters after I generated new self signed SSL certs, as previous certs had expired. Confirmed credentials used are correct and all previous caches were cleared. I also cleared the certificate cache used by putty but no behavior change. Same behavior occurs sourcing Invoke-NcSsh from a completely different server which was never used for netapp automation; I installed the latest putty msi and latest netapp powershell toolkit, and ran Invoke-NcSsh command (output below) which completed successfully, yet still triggered an 'invalid ssh login' event.
Powershell copy & paste:
PS C:\Windows\system32> Import-Module DataONTAP
PS C:\Windows\system32> $creds = Get-Credential
cmdlet Get-Credential at command pipeline position 1
Supply values for the following parameters:
Credential
PS C:\Windows\system32> Invoke-NcSsh -ControllerName [xx ommitted xx] -Command "version" -Credential $creds
NcController : [xx ommitted xx]
Value :
Last login time: 9/30/2021 17:22:51
Unsuccessful login attempts since last login: 1
NetApp Release 9.6P5: Fri Dec 13 18:21:56 UTC 2019
OnTap logs:
Message: security.invalid.login: Failed to authenticate login attempt to Vserver: [xx ommitted xx], username: admin, application: ssh.
Notice the 'Unsuccessful login attempts since last login' in the powershell output above.
Details:
-User is 'admin'.
-Using putty binary file to SSH into the cluster does NOT trigger an invalid login alarm - the alarm only occurs with powershell 'Invoke-NcSsh'.
-I followed documented steps for deleting and regenerating self signed SSL certs and assign them to the cluster vserver, but this problem has been happening ever since I did this.
Has anyone run into this before? Any ideas would be appreciated. Thanks so much!
-Ben