Giter Site home page Giter Site logo

Comments (13)

sebix avatar sebix commented on July 17, 2024

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.

lorensr avatar lorensr commented on July 17, 2024

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.

y8 avatar y8 commented on July 17, 2024

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.

lorensr avatar lorensr commented on July 17, 2024

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.

y8 avatar y8 commented on July 17, 2024

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.

lorensr avatar lorensr commented on July 17, 2024

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.

y8 avatar y8 commented on July 17, 2024

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.

lorensr avatar lorensr commented on July 17, 2024
### 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.

t2lt avatar t2lt commented on July 17, 2024

you may try to sudo chmod 755 /home/git/repositories/gitosis-admin.git/hooks/post-update

from redmine-gitosis.

lorensr avatar lorensr commented on July 17, 2024

Thanks - I tried sudo chmod 755 /srv/gitosis/repositories/gitosis-admin.git/hooks/post-update, but no change.

from redmine-gitosis.

lorensr avatar lorensr commented on July 17, 2024

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.

y8 avatar y8 commented on July 17, 2024

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.

lorensr avatar lorensr commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.