title: Execute shell script in remote machine using ssh command with config file
body: <p>I want to execute a shell script in remote machine and i achieved this using the below command,</p>
  
  <pre><code>ssh user@remote_machine "bash -s" &lt; /usr/test.sh
  </code></pre>
  
  <p>The shell script executed properly in the remote machine. Now i have made some changes in script to get some values from the config file. The script contains the below lines,</p>
  
  <pre><code>#!bin/bash
  source /usr/property.config
  echo "testName"
  </code></pre>
  
  <p><strong>property.config :</strong></p>
  
  <pre><code>testName=xxx
  testPwd=yyy
  </code></pre>
  
  <p>Now if i run the shell script in remote machine, i am getting no such file error since /usr/property.config will not be available in remote machine.</p>
  
  <p>How to pass the config file along with the shell script to be executed in remote machine ?</p>