Microsoft Virtualization Discussions
Microsoft Virtualization Discussions
Hello ,
The error is "invoke-ncssh : the system cannot find file specified”
powershell tolls 9.8 , invoke-ncssh is not working with ontap 9.3 or above
need your help please
Solved! See The Solution
Works for me on ONTAP 9.8:
PS C:\> Invoke-NcSsh -Name x.x.x.x -Command version
Keyboard-interactive authentication prompts from server:
End of keyboard-interactive prompts from server
NcController : x.x.x.x
Value :
Last login time: 4/5/2021 09:51:56
NetApp Release 9.8: Wed Dec 09 01:07:39 UTC 2020
Maybe try removing/unistalling the module and reinstalling?
Alternately, you could look into posh-ssh:
https://www.powershellmagazine.com/2014/07/03/posh-ssh-open-source-ssh-powershell-module/
Works for me on ONTAP 9.8:
PS C:\> Invoke-NcSsh -Name x.x.x.x -Command version
Keyboard-interactive authentication prompts from server:
End of keyboard-interactive prompts from server
NcController : x.x.x.x
Value :
Last login time: 4/5/2021 09:51:56
NetApp Release 9.8: Wed Dec 09 01:07:39 UTC 2020
Maybe try removing/unistalling the module and reinstalling?
Alternately, you could look into posh-ssh:
https://www.powershellmagazine.com/2014/07/03/posh-ssh-open-source-ssh-powershell-module/
A little late here, but in my experience, I've had to follow these steps to get Invoke-NcSSH to work (I got this from another community thread that I don't have the link to at the moment):
Make sure you are running PSTK 4.5P1 or greater
Make sure you are using Putty 0.70 or greater
Connect to any target servers using Putty so that the SSH key is added to the hosts file
In Regedit:
\HKEY_LOCAL_MACHINE\SOFTWARE\SimonTatham (Right click, permissions)
All application packages: Full Control
Users (of the local machine your on): Full Control
Open a new PowerShell window.