title: I can ssh in manually, but not from a script - Permission denied (publickey)
body: <p>So I'm currently working on a load balancing python script. In this script I will need to update a file on a server. My plan is to have my python script call a bash script. </p>
  
  <p>In that bash script I'd like to ssh into the server, execute an awk command on a file, then logout.</p>
  
  <p>I can currently ssh into this server manually, because I've set up an ssh key (using Google Cloud Platform). But when I try to run a bash script that only executes </p>
  
  <pre><code>'ssh username@externalIP'
  </code></pre>
  
  <p>I get the error: Permission denied (publickey)</p>
  
  <p>What am I missing here?</p>