title: Who am I when ssh connected to another computer
body: <p>In cygwin, I connect via ssh into an ec2 computer,</p>
  
  <pre><code> ssh -i xxxxxxx.pem ec2-user@ec2xxxxx.amazonaws.com
  </code></pre>
  
  <p>Ask who am I and get ec2-user</p>
  
  <pre><code>[ec2-user@ip-xxxxxxx]$ whoami
  ec2-user
  </code></pre>
  
  <p>But when I run <code>git clone</code> with https, it asks me for my 'personal' password. So that for the user of my local computer, not the one at ec2.</p>
  
  <pre><code>Password for 'https://localuser@bitbucket.org'
  </code></pre>
  
  <p>What's going on? Why doesn't it use ec2-user? Isn't ssh supposed to handle only communication between my local and that remote computer?</p>