ONTAP Discussions

Powershell Invoke-NcSsh -PrivateKeyFile supported algorithm

ACWCalvinWong
975 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 admin-cert@10.167.167.167

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

 

Many thanks!

0 REPLIES 0
Public