Comments (13)
Is your SSH-Key not password-secured? Otherwise, there should be a prompt, of course. How did you create your own SSH-Key?
from redmine-gitosis.
Thank you for your time!
openssl genrsa -des3 -out redmine-private.pem 2048
openssl rsa -in redmine-private.pem -pubout > redmine.pub
It is password-secured, but the prompt is:
$ git push origin master
gitosis@redmine's password:
Permission denied, please try again.
and the password I used when creating the key does not work.
from redmine-gitosis.
Um, why you tying to connect using gitosis
user? Are you sure that your installation uses it instead of git
?
I mean git origin: gitosis@redmine:test.git
from redmine-gitosis.
I tried git@redmine:test.git
and got the same results, but apt-get install gitosis
sets up the user gitosis
, which is why the sudo's in the last part of my bash record are as gitosis
.
from redmine-gitosis.
I'm sure, this is not an redmine-gitosis issue, but you should start from looking into /var/logs/secure (or what debian uses for authentication logging), and see what happens. Don't forget to start sshd with debug-level logging.
from redmine-gitosis.
I stopped my sshd and started it with sudo /usr/sbin/sshd -ddd
Here is the output: https://gist.github.com/1154120
So it appears to be looking in /srv/gitosis/.ssh/authorized_keys
. Should the redmine_gitosis plugin be placing the public keys uploaded by redmine users in that file?
from redmine-gitosis.
There something wrong with your installation. Can you paste /srv/gitosis/.ssh/authorized_keys. contents? There something wrong with key file:
debug2: key_type_from_name: unknown key type 'command="gitosis-serve'
debug3: key_read: missing keytype
from redmine-gitosis.
### autogenerated by gitosis, DO NOT EDIT
command="gitosis-serve gitosis@redmine",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty ssh-dss AAAA...[one long random string here]...= gitosis@redmine
from redmine-gitosis.
you may try to sudo chmod 755 /home/git/repositories/gitosis-admin.git/hooks/post-update
from redmine-gitosis.
Thanks - I tried sudo chmod 755 /srv/gitosis/repositories/gitosis-admin.git/hooks/post-update
, but no change.
from redmine-gitosis.
Should I try reinstalling gitosis in a different manner from above? Or is there another issue page / mailing list I should try?
from redmine-gitosis.
Yes, I think you should try from scratch. First of all, befo setting redmine integration, make sure that gitosis itself work well.
from redmine-gitosis.
On the server:
git clone git://eagain.net/gitosis
cd gitosis
python setup.py install
sudo adduser --system --shell /bin/sh --gecos 'git version control' --group --disabled-password --home /srv/git git
sudo -H -u git ssh-keygen -t dsa
sudo -u git cat /srv/git/.ssh/id_dsa.pub | sudo -H -u git gitosis-init
sudo scp /srv/git/.ssh/id_dsa me@client:~/.ssh/git_pri
On the client:
$ git clone git@redmine:gitosis-admin.git
Cloning into gitosis-admin...
git@redmine's password:
Permission denied, please try again.
How does git know to use ~/.ssh/git_pri
? Could that be the problem? When I use a key with ssh I do ssh -i ~/.ssh/key.pem user@host
.
from redmine-gitosis.
Related Issues (15)
- plugin name/directory discrepancy HOT 2
- 'Undefined method 'gitosis_public_keys'", redmine 1.0.0 HOT 4
- Fails with Postgres HOT 1
- New per project setting not visible with redmine_gitosis
- Disable Other SCM - Why? HOT 3
- NameError (uninitialized constant GitosisPublicKeysController::ARCondition) HOT 2
- Problem when using PostgreSQL HOT 4
- key.identifier has not id HOT 1
- Initial import of existing keys
- problem create a new project HOT 1
- Trying to access Public Keys via web interface HOT 3
- No such file or directory - /tmp/redmine-gitosis-xxx/gitosis/gitosis.conf HOT 1
- Error using this plugin with a postgres DB. HOT 1
- Issue with file Locking HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redmine-gitosis.