Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Powershell Invoke-NcSsh -PrivateKeyFile supported algorithm
2024-02-23
01:45 AM
1,331 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
