简体   繁体   English

Git Windows存储库权限

[英]Git Windows Repository Permissions

I have Git setup on a Windows server all configured using SSH (Bitvise SSH). 我在全部使用SSH(Bitvise SSH)配置的Windows服务器上安装了Git。

I have manually created some bare repositories on the server using an admin account. 我已经使用管理员帐户在服务器上手动创建了一些裸仓库。

When I connect remotely using the same admin account it lets me clone the repo with no issues. 当我使用相同的管理员帐户远程连接时,它使我可以毫无问题地克隆存储库。 However, when I use a user account it cannot find the repository. 但是,当我使用用户帐户时,它找不到存储库。

So to be clear, this works: 因此,很明显,这可行:

git clone ssh://Admin@xxx.cloudapp.net:789/~/Test

This doesn't: 这不是:

git clone ssh://User@xxx.cloudapp.net:789/~/Test

I've checked all the Windows permissions on the server for the folder containing the repository, 'User' has full access to everything. 我已经检查了服务器上所有Windows权限中包含存储库的文件夹的权限,“用户”拥有对所有内容的完全访问权限。

What am I missing? 我想念什么?

Thanks 谢谢

I'm not sure but each Git user should have another SSH keys. 我不确定,但是每个Git用户都应该有另一个SSH密钥。 Did you use specified SSH keys (for User account) when you tried clone by User account? 尝试按用户帐户克隆时,是否使用了指定的SSH密钥(用于用户帐户)?

Turns out I had the home path of the users set wrong and was also making a mistake with the absolute path. 原来,我将用户的原始路径设置为错误,并且在绝对路径上也犯了一个错误。 I didn't need the drive letter... So 我不需要盘符...所以

/path/to/repo 

Worked, but 工作,但是

/c/path/to/repo

Didn't. 没有 Anyway all setup now, I now have a completely Windows based Git server with SSH 无论如何,现在进行所有设置,我现在有了一个完全基于Windows的SSH Git服务器

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM