<?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 Interacting with Linux Hosts via SSH in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Interacting-with-Linux-Hosts-via-SSH/m-p/36999#M7584</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to change the PowerShell execution policy that WFA executes at?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems to default to RemoteSigned no matter what I do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have found a method to utilize SSH within PowerShell and I am trying to create workflows that interact with Linux hosts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jun 2025 06:06:42 GMT</pubDate>
    <dc:creator>SeanLuce</dc:creator>
    <dc:date>2025-06-05T06:06:42Z</dc:date>
    <item>
      <title>Interacting with Linux Hosts via SSH</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Interacting-with-Linux-Hosts-via-SSH/m-p/36999#M7584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to change the PowerShell execution policy that WFA executes at?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems to default to RemoteSigned no matter what I do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have found a method to utilize SSH within PowerShell and I am trying to create workflows that interact with Linux hosts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 06:06:42 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Interacting-with-Linux-Hosts-via-SSH/m-p/36999#M7584</guid>
      <dc:creator>SeanLuce</dc:creator>
      <dc:date>2025-06-05T06:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Interacting with Linux Hosts via SSH</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Interacting-with-Linux-Hosts-via-SSH/m-p/37004#M7586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Sean,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I know that we covered most of this in another thread (&lt;A _jive_internal="true" href="https://community.netapp.com/message/103920#103920" title="https://communities.netapp.com/message/103920#103920" target="_blank"&gt;https://communities.netapp.com/message/103920#103920&lt;/A&gt;).&amp;nbsp; Are you good at this point?&amp;nbsp; I had suggested using the native Invoke-NaSSH with the credential type of Other.&amp;nbsp; I had also given a suggestion of how you can modify the Execution Policy.&amp;nbsp; I wanted to document both here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;============================================&lt;/P&gt;&lt;P&gt; I hope you enjoyed the Podcast.&amp;nbsp; We had fun doing it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Technically, the Invoke-NaSSH is suppose to be for connections to NetApp Array but it is a regular SSH client.&amp;nbsp; I have used it for several direct operations to switches and to hosts.&amp;nbsp; So far no issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding the remote execution issue:&amp;nbsp; Remember that by default, WFA runs as a Local System account.&amp;nbsp; If you need to change the execution policy for the Powershell modules to execute then there are a couple of options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) There is a tool called PsExec (&lt;A class="jive-link-external-small" href="http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx" target="_blank"&gt;http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx&lt;/A&gt;) that would allow you to trigger an execution as the Local System account.&amp;nbsp; You could use this to test out the issues that you are having and possible change the execution policy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) The other option would be to 'change' the execution on the fly.&amp;nbsp; If you put into the WFA command the cmdlet to 'backup' the execution policy and then set it to unrestricted.&amp;nbsp; After the execution was finished then the policy would be set back to the original state.&amp;nbsp; I have used this little 'trick' many times when I need to run a script:&lt;/P&gt;&lt;P&gt;--------------------------------------------&lt;/P&gt;&lt;P&gt; $curPolicy=Get-ExecutionPolicy&lt;/P&gt;&lt;P&gt;Set-ExecutionPolicy Unrestricted&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;Set-ExecutionPolicy $curPolicy&lt;/P&gt;&lt;P&gt;--------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that we settled on the following based on your last post in that thread:&lt;/P&gt;&lt;P&gt;============================================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't believe how easy this turned out to be...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems like any modification at all to the included PoSH toolkit causes issues even with the bundled workflows.&amp;nbsp; It must do some kind of validation to make sure they haven't been tampered with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Passing down the WFA credential of 'Other' was what did the trick.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is now working without any prompting:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$credentials = Get-NaCredentials -Host 192.168.24.131&lt;/P&gt;&lt;P&gt;Invoke-NaSsh -Name 192.168.24.131 -Command 'mkdir /mnt/now' -Credential $credentials&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;============================================&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Mar 2013 17:40:10 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Interacting-with-Linux-Hosts-via-SSH/m-p/37004#M7586</guid>
      <dc:creator>goodrum</dc:creator>
      <dc:date>2013-03-28T17:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Interacting with Linux Hosts via SSH</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Interacting-with-Linux-Hosts-via-SSH/m-p/37012#M7590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I am good for now.&amp;nbsp; Thank you again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Apr 2013 15:56:28 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Interacting-with-Linux-Hosts-via-SSH/m-p/37012#M7590</guid>
      <dc:creator>SeanLuce</dc:creator>
      <dc:date>2013-04-01T15:56:28Z</dc:date>
    </item>
  </channel>
</rss>

