title: Why is flutter pub get not finding my ssh-key for github?
body: <p>My flutter App depends on a module privately hosted on github.<br />
  When I run <code>pub get</code> from Powershell, i get:</p>
  <pre><code>Git error. Command: `git clone --mirror ssh://git@github.com:dirkbo/repo-name.git C:\src\flutter\.pub-cache\git\cache\repo-name-123ba`
  stdout:
  stderr: Cloning into bare repository 'C:\src\flutter\.pub-cache\git\cache\repo-name-123ba'...
  git@github.com: Permission denied (publickey).
  fatal: Could not read from remote repository.
  
  Please make sure you have the correct access rights
  and the repository exists.
  exit code: 128
  </code></pre>
  <p>When I copy the failed command and run directly in the same powershell:</p>
  <pre><code>git clone --mirror git@github.com:dirkbo/repo-name.git C:\src\flutter\.pub-cache\git\cache\repo-name-123ba
  </code></pre>
  <p>Everything works fine:</p>
  <pre><code>Cloning into bare repository 'C:\src\flutter\.pub-cache\git\cache\repo-name-123ba'...
  Enter passphrase for key '/c/Users/dirkb/.ssh/id_rsa':
  remote: Enumerating objects: 229, done.
  remote: Counting objects: 100% (229/229), done.
  remote: Compressing objects: 100% (132/132), done.
  remote: Total 229 (delta 13), reused 229 (delta 13), pack-reused 0
  Receiving objects: 100% (229/229), 19.32 MiB | 1.45 MiB/s, done.
  Resolving deltas: 100% (13/13), done.
  </code></pre>
  <p>In my <code>pubspec.yaml</code> I tried:</p>
  <pre><code>repo:
      git: ssh://git@github.com/dirkbo/repo-name.git
  </code></pre>
  <p>(result see above)</p>
  <p>and</p>
  <pre><code>repo:
      git: git@github.com:dirkbo/repo-name.git
  </code></pre>
  <p>which gives me:</p>
  <pre><code>Git error. Command: `git fetch`
  stdout:
  stderr: git@github.com: Permission denied (publickey).
  fatal: Could not read from remote repository.
  
  Please make sure you have the correct access rights
  and the repository exists.
  exit code: 128
  </code></pre>
  <p>It seems like the batch command running <code>pub get</code> can't find my ssh key.</p>