title: Running a shell script via Jenkins running on Windows Server 2008
body: <p>I have wrote a shell script which uses Linux specific commands and is hosted on a RHEL7 EC2 instance, this isn't a problem as it can be ran from any Unix machine.</p>
  
  <p>How can I create a Jenkins job which will successfully run this script? The script works fine on any Unix machine, however I can't seem to find a way to run the command via a Jenkins job which is hosted in a Windows Server 2008 environment.</p>
  
  <p>So far I have tried adding the SSH plug-ins for Jenkins (got an error regarding my private key, however I have confirmed it is correct) and I have tried remotely connecting to the Linux server via PuTTY command line (plink) and passing through the username/password followed by the script I'd like to be ran yet no luck.</p>
  
  <p>I was just wondering if anybody has encountered a similar challenge and could guide me down the right path, I've spent hours researching different methods/configurations with no luck.</p>
  
  <p>Thanks in advance.</p>
  
  <p>Note: I have also tried locally installing Cygwin and running the script that way but it didn't work, probably due to my own configuration - However, it does seem overkill for my scenario.</p>