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 6704375
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:16:53+00:00 2026-05-26T07:16:53+00:00

I have two computers, say notebook and desktop . Both have cygwin with git

  • 0

I have two computers, say notebook and desktop. Both have cygwin with git and msysgit installed.

When I am on desktop and do a git fetch origin from the cygwin command window, everything works fine, as well as git fetch origin from the msysgit console.

But when I SSH into desktop from notebook using the cygwin SSH client and then do a git fetch origin from the SSH session, I get

error: could not open '//path/to/origin.git'
fatal: Could not read bundle '//path/to/origin.git'.

I assume it is a rights problem because the share I’m accessing is not readable for everyone but only for certain users. I think, when going through SSH to my desktop, I am not the same user as I am when accessing the share directly from desktop.

How do I get the correct user in cygwin to access a protected share?


Edit: although it’s claimed that this question shall be a duplicate of 'X' does not appear to be a git repository (I'm sure the path is correct), I don’t see any relations to that question.


Edit: if that matters:

  • cygwin git is in version 1.7.5.1
  • cygwin ssh is OpenSSH_5.8p1, OpenSSL 0.9.8r 8 Feb 2011
  • msysgit is in version 1.7.6.msysgit.0
  • 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-26T07:16:54+00:00Added an answer on May 26, 2026 at 7:16 am

    Windows with centralized user management using Active Directory use Kerberos tickets to authenticate access to the shares. Since privileged process can change local credentials to specified user, logging in with ssh may not go through Kerberos though and in such case the you will be able to do anything locally as usual, but shares will not recognize you.

    If you use public key authentication, it never goes through Kerberos and thus you will never be able to access shares (not accessible to everyone), ever.

    If you use passwords, it has to go through Kerberos. I believe the system than does have access to shares, but I am not sure about it, because it’s still not regular login from Windows point of view.

    OpenSSH actually supports authentication using Kerberos tickets if compiled with the right options and linked against Kerberos library. However last time I looked cygwin ssh was not compiled that way and integration with Active Directory wasn’t possible. But it was still cygwin 1.5, so it might have been implemented since then.

    In any case, I’d suggest logging into the desktop with Remote Desktop Protocol instead. There are working clients for Linux as well. The downside is it’s GUI, so it’s not scriptable. You may also have some luck if you connect with RDP, so you are actually logged, put it into background and log in with ssh in parallel to that, but I didn’t try, so I am not sure.

    I also successfully used Unix Kerberos implementation to obtain the ticket from Active Domain (there are a few quirks like the domain has to be typed in uppercase, but nothing too complicated) and use the Kerberos support in Samba to connect to the shares from Unix.

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

Sidebar

Related Questions

Say, I have two computers behind firewalls, routers, etc (ie. no incoming connections). Is
I have two computers. Both running WinXP SP2 (I don't really know ho similar
I work from two different computers (A and B) and store a common git
I have one folder synced between two computers (using one of online sync tools).
I have seen new computers having two processors on same motherboard . How can
I have two computer : the desktop in my company and the portable computer
I have two versions of rails (2.1.0 and 2.2.2) installed in my computer. When
I've got two hard disks in my computer, and have installed Solaris 10u8 on
I have two arrays, say A and B with |A|=8 and |B|=4. I want
Lets say i have two inline functions in my header file: inline int foo()

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.