<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Powershell Invoke-NcSsh -PrivateKeyFile supported algorithm in ONTAP Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Discussions/Powershell-Invoke-NcSsh-PrivateKeyFile-supported-algorithm/m-p/450984#M43293</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;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?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently using:&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;ecdsa-sha2-nistp256&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Failed using Powershell:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Invoke-NcSsh: C:\Users\calvinwong\Documents\Sample 3.ps1:24&lt;BR /&gt;Line |&lt;BR /&gt;24 | Invoke-NcSsh -Command $cmd -Name $cluster -Username $usr -PrivateKeyF …&lt;BR /&gt;| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;| &lt;STRONG&gt;Key 'OPENSSH' is not supported.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Same Key ok to login without password:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;PS C:\users\calvinwong\.ssh&amp;gt; ssh admin-cert@10.167.167.167&lt;/P&gt;&lt;P&gt;Last login time: 2/23/2024 11:38:38&lt;BR /&gt;NP-OTP-05::&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 09:40:43 GMT</pubDate>
    <dc:creator>ACWCalvinWong</dc:creator>
    <dc:date>2025-06-04T09:40:43Z</dc:date>
    <item>
      <title>Powershell Invoke-NcSsh -PrivateKeyFile supported algorithm</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Powershell-Invoke-NcSsh-PrivateKeyFile-supported-algorithm/m-p/450984#M43293</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;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?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently using:&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;ecdsa-sha2-nistp256&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Failed using Powershell:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Invoke-NcSsh: C:\Users\calvinwong\Documents\Sample 3.ps1:24&lt;BR /&gt;Line |&lt;BR /&gt;24 | Invoke-NcSsh -Command $cmd -Name $cluster -Username $usr -PrivateKeyF …&lt;BR /&gt;| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;| &lt;STRONG&gt;Key 'OPENSSH' is not supported.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Same Key ok to login without password:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;PS C:\users\calvinwong\.ssh&amp;gt; ssh admin-cert@10.167.167.167&lt;/P&gt;&lt;P&gt;Last login time: 2/23/2024 11:38:38&lt;BR /&gt;NP-OTP-05::&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 09:40:43 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Powershell-Invoke-NcSsh-PrivateKeyFile-supported-algorithm/m-p/450984#M43293</guid>
      <dc:creator>ACWCalvinWong</dc:creator>
      <dc:date>2025-06-04T09:40:43Z</dc:date>
    </item>
  </channel>
</rss>

