title: Using a variable for scp -i does not work but passing the filename works
body: <p>I am using SCP to do a file transfer, however, when I specify the key file using a variable name, I get the following error:</p>
  
  <blockquote>
    <p>Warning: Identity file RPD-API.pem  not accessible: No such file or
    directory.</p>
  </blockquote>
  
  <p>The command I use is:</p>
  
  <pre><code>scp -i $SSH_KEY_PATH -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no $WORKSPACE/test.war root@$MQ_IP:/home/test/ROOT.war
  </code></pre>
  
  <p>I am new to bash, but I feel this is something simple and I just lack familiarity. When I hardcode the key file name, there is no issue. For example:</p>
  
  <pre><code>scp -i RPD-API.pem -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no $WORKSPACE/test.war root@$MQ_IP:/home/test/ROOT.war
  </code></pre>
  
  <p>When I print the variable value, it looks correct:</p>
  
  <pre><code>$ echo $SSH_KEY_PATH
  RPD-API.pem
  </code></pre>