Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3458290
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T09:57:53+00:00 2026-05-18T09:57:53+00:00

I have just start using git and i can’t get it to remember my

  • 0

I have just start using git and i can’t get it to remember my passphrase I’m using cmd.exe elevated and my git host is github and i have create a ssh key like that guide on github

but i still get

*\subnus.mvc>git push origin master
Enter passphrase for key '/c/Users/Subnus/.ssh/id_rsa':
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T09:57:53+00:00Added an answer on May 18, 2026 at 9:57 am

    I realize that this question is coming up on two years old, but I had the same issue and several answers here did not completely answer the question for me. Here are three step-by-step solutions, depending on whether you use TortoiseGit in addition to msysgit or not.

    First solution Assumes Windows, msysgit, and PuTTY.

    1. Install msysgit and PuTTY as instructed.

    2. (Optional) Add PuTTY to your path. (If you do not do this, then any references to PuTTY commands below must be prefixed with the full path to the appropriate executable.)

    3. If you have not done so already, then generate a key hash as instructed at GitHub or as instructed by your Git host.

    4. Again, if you have not already done so, convert your key for use with PuTTY’s pageant.exe using puttygen.exe. Instructions are in PuTTY’s documentation, in this helpful guide, and several other places in cyberspace.

    5. Run PuTTY’s pageant.exe, open your .ppk file ("Add Key"), and provide your passphrase for your key.

    6. Access Windows’ environment variables dialog (Right-click on "Computer", Click on "Properties", Click on "Advanced system settings" or the "Advanced" tab, click on "Environment Variables"). Add the following environment variable:

      GIT_SSH=C:\full\path\to\plink.exe

      Replace "C:\full\path\to" with the full installation path to PuTTY, where plink.exe is found. It is probably best to add it to the "User variables" section. Also, make sure that the path you use to plink.exe matches the path you use for Pageant (pageant.exe). In some cases, you may have several installations of PuTTY because it might be installed along with other applications. Using plink.exe from one installation and pageant.exe from another will likely cause you trouble.

    7. Open a command prompt.

    8. If you are trying to connect to a git repository hosted at Github.com then run the following command:

      plink.exe git@github.com

      If the git repository you are trying to connect to is hosted somewhere else, then replace git@github.com with an appropriate user name and URL. (Assuming Github) You should be informed that the server’s host key is not cached, and asked if you trust it. Answer with a y. This will add the server’s host key to PuTTY’s list of known hosts. Without this step, git commands will not work properly. After hitting enter, Github informs you that Github does not provide shell access. That’s fine…we don’t need it. (If you are connecting to some other host, and it gives you shell access, it is probably best to terminate the link without doing anything else.)

    9. All done! Git commands should now work from the command line. You may want to have pageant.exe load your .ppk file automatically at boot time, depending on how often you’ll be needing it.

    Second solution Assumes Windows, msysgit, and TortoiseGit.

    TortoiseGit comes with PuTTY executables and a specially modified version of plink (called TortoisePlink.exe) that will make things easier.

    1. Install msysgit and TortoiseGit as instructed.

    2. If you have not done so already, then generate a key hash as instructed at GitHub or as instructed by your Git host.

    3. Again, if you have not already done so, convert your key for use with TortoiseGit’s pageant.exe using TortoiseGit’s puttygen.exe. Instructions are in PuTTY’s documentation, in the helpful guide linked to in the first solution, and in several other places in cyberspace.

    4. Run TortoiseGit’s pageant.exe, open your .ppk file ("Add Key") and provide your passphrase for your key.

    5. Access Windows’ environment variables dialog (Right-click on "Computer", Click on "Properties", Click on "Advanced system settings" or the "Advanced" tab, click on "Environment Variables"). Add the following environment variable:

      GIT_SSH=C:\full\path\to\TortoisePlink.exe

      Replace "C:\full\path\to" with the full installation path to TortoiseGit, where TortoisePlink.exe is found. It is probably best to add it to the "User variables" section. Also, make sure that the path you use to TortoisePlink.exe matches the path you use for Pageant (pageant.exe). In some cases, you may have several installations of PuTTY because it might be installed along with other applications. Using TortoisePlink.exe from the TortoiseGit installation and pageant.exe from another installation of a different application (or from a standalone PuTTY installation) will likely cause you trouble.

    6. All done! Git commands should now work from the command line. The first time you try to connect to your git repository you will probably be informed that the server’s host key is not cached, and asks if you trust the server. Click on "Yes". (This is TortoisePlink.exe in action.)

      You may want to have pageant.exe load your .ppk file automatically at boot time, depending on how often you’ll be needing it.

    Third solution Assumes Windows, msysgit, and the native command prompt.

    1. Install msysgit
    2. Make sure to allow git to be used on the MS-DOS command prompt
    3. Run start-ssh-agent
    4. Enter SSH passphrases
    5. All done! Git commands should now work in the native command prompt.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Have just started using Google Chrome , and noticed in parts of our site,
Have just started using Visual Studio Professional's built-in unit testing features, which as I
I have just got a MacBook Pro and have been using it (+Fusion) to
I have just started using silverlight 2 beta and cannot find how to or
I have just started using Boost 1.36. These libraries would be very useful in
I want to use xxdiff for my merging needs. I have just started using
I am trying to understand if I really have any case for using git/mercurial.
I have never used SN or Git but I really want to start. I
So I'm using git and interacting with an svn repo. I have a svn
I'm using Git-Svn to interact with a Svn repository at work and I can't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.