gitosis

gitosis asking for password

Deadly 提交于 2019-12-05 06:37:09
I have setup a gitosis server following instructions from here . It works fine for the initial user but I have recently added a new user. Here are the steps I took. Created an rsa keypair using ssh-keygen with filename johndoe. Then copied it to the keydir in gitosis admin repo. Edited the gitosis config file and added user johndoe to the list of members Commited the changes using git commit -a -m "what i did" Pushed the changes to the server After that I tried to check out with the new keyfile. It asks for the passphrase and when I enter it correctly, it the asks for the password for user git

Using git post-receive hook with nginx and php-fpm environment

て烟熏妆下的殇ゞ 提交于 2019-12-04 17:13:49
I have a CentOS 6 server set up with git, gitosis, nginx, and php-fpm. With our setup, nginx executes php scripts via php-fpm, which is configured on a per-site basis to run as a specific user for security purposes (i.e. not all under nginx:nginx) since we don't want the situation where if one site is compromised, all sites are compromised. Our environment works great, but, when git is involved, php-fpm creates a fundamental issue. Upon successfully running the following command locally: $ git push origin My post-receive hook is run: #!/bin/sh GIT_WORK_TREE=/var/www/vhosts/example.com/httpdocs

git-merge with repository on local filesystem

a 夏天 提交于 2019-12-04 17:03:33
问题 For some context: I just upgraded Ubuntu which broke my existing gitosis installation (see here: bug #368895), and have just reinstalled gitosis from packages. I now want to migrate my whole config and set of repositories from the old gitosis installation (which still exists and can be pulled from but is otherwise broken). I now have two gitosis-admin directories locally, one for each gitosis installation. One has a full history, the other's is empty. I want to pull across this history. Here

How to include ssh private rsa key when accessing git repo via ssh (gitosis)?

放肆的年华 提交于 2019-12-04 08:08:15
At this moment I've got one git repo added through gitosis. The manual i used is http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way I can clone it and push in it via ssh auth with private and public keys (on gentoo), but windows users which are using Git Extensions can not. SSH keys placed in $HOME/.ssh, and ssh asks for a password. Nor password, nor passphrase (from private ssh key) don't match. Redmine needs for a bare repo, so i cloned repo from gitosis on my local machine and moved it to server (redmine + git), then tried to sync like showed here http://www

git clone localhost?

若如初见. 提交于 2019-12-04 02:56:48
I am not big into ubuntu, but I managed to set up git on my client and gitosis on the server which I am proud of. I added my local ssh public key to the authorized keys for gitosos and can clone, push, commit etc. Everything works fine, from my local machine to the server - back and forth. However since the server also serves as my webserver, I simply need to connect to the server and make a "git clone git@localhost:gitproject.git" in one of my webroot folders, but it simply doesn't work. Do I have to add the server pub key to the authorized hosts? And if so, how? Or is there any other way to

Git post-receive hook not working

好久不见. 提交于 2019-12-04 01:12:46
We're using git with a central repo (using Gitosis). I've created a post-receive hook to generate an email to the dev mailing list whenever changes are pushed to the central repo, and to generate documentation from the documentation folder in the git repo. Therefore, in ~git/ I've got a directory, we'll call it 'a' that contains a clone of the git repo. The post-receive hook looks like: #!/bin/bash cd ~git/repositories/a.git . ~git/post-receive-email &> /dev/null ( cd ~git/a && git pull &> ~git/pull_log.log && php ~git/a/scripts/generate_markdown_documentation.php &> ~git/doc_log.log ) The

Gitosis requires password even though the public key is given

孤街醉人 提交于 2019-12-03 16:19:21
问题 I'm confronted with some problems when trying to configure gitosis on my Archlinux http://wiki.archlinux.org/index.php/Setting_Up_Git_ACL_Using_gitosis I referred to this wiki article and successfully installed gitosis. $ sudo pacman -U gitosis-git-20090525-1-i686.pkg.tar.gz $ sudo -H -u gitosis gitosis-init < /tmp/id_rsa.pub And modified /srv/gitosis/.ssh/authorized_keys to include my local user's id_rsa.pub. But when I run git clone as the local user, $ git clone gitosis@host:gitosis-admin

Connecting to gitosis server through an SSH tunnel

荒凉一梦 提交于 2019-12-03 12:25:42
问题 I've got an SSH tunnel setup on my macbook, like this... $ ssh -o ServerAliveInterval=3 -N -L 22222:gitosis-server:22 user@firewall.domain.com So I can ssh to localhost:22222 and will end up on the gitosis-server behind the firewall. I've created a local id_rsa.pub file, copied it into the gitosis server(running Centos5), and imported it into gitosis using... # sudo -H -u gitosis gitosis-init It was successful as I can see the public key in /var/lib/gitosis/.ssh/authorized_keys. Back on my

git-merge with repository on local filesystem

喜你入骨 提交于 2019-12-03 10:48:46
For some context: I just upgraded Ubuntu which broke my existing gitosis installation (see here: bug #368895 ), and have just reinstalled gitosis from packages. I now want to migrate my whole config and set of repositories from the old gitosis installation (which still exists and can be pulled from but is otherwise broken). I now have two gitosis-admin directories locally, one for each gitosis installation. One has a full history, the other's is empty. I want to pull across this history. Here's what's happening though: me@server:~/gitosis-admin-new$ git merge ../gitosis-admin-old/ fatal: '..

Why I can't add new repositories using gitosis?

拜拜、爱过 提交于 2019-12-03 08:29:38
I set up gitosis but even when i can clone, pull and push to the gitosis-admin repo, i can't create new ones. According to every doc i read, to create a new repo one has to: Give user write access to the repo (inside a group put: writable = repo-name) The user create a repo locally add a remote then does a push The repo is created in the server But i always get the error fatal: 'repo-name.git' does not appear to be a git repository But if a login on the server (as user git) and create the repo manually using mkdir repo-name.git && cd repo-name.git && git --bare init , then i can push from my