Sample PowerShell module for managing SSH enabled Linux hosts using SMA

This is a sample Windows PowerShell module to manage SSH enabled Linux hosts. It wraps the Putty tool Plink.exe to perform the SSH commands.
5 Star
2,451 times
Add to favorites
System Center
E-mail Twitter Digg Facebook
Sign in to ask a question

  • how to use the invoke-sshcommand
    1 Posts | Last post March 03, 2015
    • Eamon, I was looking and testing the script you put into the blog and I was wondering how can I make the script ask for the password instead of the keyfilepath? How can make it ssh to multiple servers using a single credentials or multiple credentials. Hope you can help me with my issue. Thanks
  • Redirected Output
    1 Posts | Last post May 19, 2014
    • Hi Eamon,
      Great script!  I've added this to my repository!!
      Instead of redirecting the output to a flat file, could you use "2>&1" rather than "2>" to redirect it to the standard output and evaluate $args for any error strings or null?
      I've wrapped Putty's psftp.exe with PowerShell for Orchestrator and used that to redirect the output to the activity's published data.  I'm not sure if SMA would act differently....