NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

ONTAP Discussions

Powershell Invoke-NcSsh -PrivateKeyFile supported algorithm

ACWCalvinWong
1,758 Views

Hi all,

I am using powershell to do Invoke-NcSSH with PrivateKeyFile, the same key files can use to logon on WIndows 2002 to ONTAP without password, but seems not for Powershell, is there any specific key requirements? 

Currently using: 

ecdsa-sha2-nistp256

 

Failed using Powershell:

 

Invoke-NcSsh: C:\Users\calvinwong\Documents\Sample 3.ps1:24
Line |
24 | Invoke-NcSsh -Command $cmd -Name $cluster -Username $usr -PrivateKeyF …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Key 'OPENSSH' is not supported.

 

Same Key ok to login without password:

PS C:\users\calvinwong\.ssh> ssh [email protected]

Last login time: 2/23/2024 11:38:38
NP-OTP-05::>

 

Many thanks!

0 REPLIES 0
Public