Note that there are some explanatory texts on larger screens.

plurals
  1. POFix msysGit Portable $HOME location
    primarykey
    data
    text
    <p>I have successfully installed and configured msysGit Portable on my flash drive, and have used it to pull and push GitHub repos. However, I seem to always have to kludge the SSH support.</p> <p>Specifically, in order for SSH to find my key files, I have to follow <a href="http://chickenandbeans.vox.com/library/post/weird-ssh-agent-error-could-not-open-a-connection-to-your-authentication-agent.html" rel="noreferrer">these instructions</a> to start a second instance of <code>ssh-agent</code> and then <code>ssh-add</code> my key every time I run git-bash.bat.</p> <p>Using the output of <code>ssh -v git@github.com</code> to debug I see that msysGit defaults to my Windows user directory to look for keys. It can't do that; I need it to look in its own directory on the portable drive.</p> <p>How can I force $HOME to be the program's own folder?</p> <h3>Update for broken Vox link</h3> <p>Instructions from <a href="https://www.cs.indiana.edu/Facilities/FAQ/Security/openssh.html" rel="noreferrer">this page</a> are similar to the now-broken link I originally posted. Quoted below. Also here's the <a href="http://web.archive.org/web/20100323030730/http://chickenandbeans.vox.com/library/post/weird-ssh-agent-error-could-not-open-a-connection-to-your-authentication-agent.html" rel="noreferrer">webarchive of original Vox article</a>.</p> <blockquote> <p>However, if you try this and get:</p> <pre><code>% ssh-add Could not open a connection to your authentication agent. </code></pre> <p>then your session is not running under the ssh-agent. You can get around this by restarting a new shell under the agent by running:</p> <pre><code>exec ssh-agent bash </code></pre> <p>where you can replace bash with the shell of your choice. Once you do this, you should be able to run ssh-add to load your key for that shell. </p> </blockquote>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload