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

  • SEARCH
  • Home
  • 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 8409561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T23:56:42+00:00 2026-06-09T23:56:42+00:00

I have Cygwin, msysgit and TortoiseGit installed on my Windows machine. I am writing

  • 0

I have Cygwin, msysgit and TortoiseGit installed on my Windows machine. I am writing a script for Cygwin that does a git push to a remote machine via ssh:

git push ssh://host/path/to/git master:master

At this point, a popup appears and asks me the user I want to use for SSH. If I type a user, then I get a second popup that asks me for the password of that user. Now, I have two problems with that:

  1. That user authenticates using a key pair, so it doesn’t have a password. The popup doesn’t let me specify a private key.
  2. The reason why I’m writing a script is to avoid to have to repetitively write mundane things like username and private key location, so I would like to be able to pass the username and the path to the private key file to the command line (or maybe a config file).

Do you know how to do that?

  • 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-06-09T23:56:43+00:00Added an answer on June 9, 2026 at 11:56 pm

    When using a Windows computer, I use pageant to set a private key and automatically provide it to the requesting applications.

    So I have to give the private key password (to pageant) only once per session and not at every need. As pageant is an authentication agent, it works for all programs doing ssh connections (I tested it with msysgit with no problem).

    See : http://the.earth.li/~sgtatham/putty/0.60/htmldoc/Chapter9.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have Cygwin installed on Windows XP and it comes with git v1.7.3.3. I
I'm trying to run genhtml using perl.exe from Cygwin in Windows. I have installed
i have installed the cygwin package for my netbeans IDE. I can use that
how to use Linux lib such as timeval in windows I have installed cygwin
I have Cygwin running on a Windows 7 machine and have the Cygwin ssh
I have cygwin and node.exe (0.5.7) installed on my window XP. When I git
I just started bash shell programming. I have installed Cygwin on my Windows 7
I have Scons and Cygwin installed on Windows XP SP2. When i call Scons
I have a shell script that I am executing in Cygwin (maybe this is
I have some code I'm writing under cygwin (using GCC) that successfully uses gethostbyname();

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.