Microsoft Virtualization Discussions

powershell tolls 9.8 , invoke-ncssh is not working with ontap 9.3 or above

Yair
3,274 Views

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

1 ACCEPTED SOLUTION

parisi
3,227 Views

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/

 

 

View solution in original post

3 REPLIES 3

parisi
3,228 Views

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/

 

 

Yair
3,194 Views
Hey ,

This is weird , I tried the same thing on my external network with ontapp 9.3 and it is working fine.

I guess it is something internal .

Thank you I will work on it



________________________________________

This message (including any attachments) issued by RAFAEL- ADVANCED DEFENSE SYSTEMS LTD. (hereinafter "RAFAEL") contains confidential information intended for a specific individual and purpose, may constitute information that is privileged or confidential or otherwise protected from disclosure. If you are not the intended recipient, you should contact us immediately and thereafter delete this message from your system. You are hereby notified that any disclosure, copying, dissemination, distribution or forwarding of this message, or the taking of any action based on it, is strictly prohibited. If you have received this e-mail in error, please notify us immediately by e-mail mailto:lawraf@rafael.co.il and completely delete or destroy any and all electronic or other copies of the original message and any attachments thereof.

Jim_Robertson
2,907 Views

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.

Public