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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T00:26:23+00:00 2026-05-17T00:26:23+00:00

I just setup an git repository using gitosis. What I can’t figure out is

  • 0

I just setup an git repository using gitosis. What I can’t figure out is how to add other users. All tutorials I find only says “gather their public SSH keys”.

First of I tried to create the locally on my machine (not server) but I kinda figured that’s the wrong way to go.
Now I’ve tried to create public key using PuTTy keygen on a windows machine, saved the key and put it in to the keydir under gitosis-admin directory.
I’ve tried both git clone git@cn-linuxdev.****.***:tungsten.git and git clone tor@cn-linuxdev.****.***:tungsten.git where tor is the name of the file in keydir.

The error generated in auth.log is Failed password for git from 192.168.0.158 port 63305 ssh2

From the windows client I’ve also tried the password set during setup sudo -H -u git gitosis-init < /tmp/id_rsa.pub.
This ssh key comes from my local computer. And this password works from there but not the windows client.

I don’t quite understand how the ssh-keys work but I would guess they are bound in someway to the computer they are generated on.

So have anyone managed to set up gitosis with other users and windows users? How did you get it to work?

  • 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-17T00:26:24+00:00Added an answer on May 17, 2026 at 12:26 am

    Each user should generate his/her own couple of public and private ssh key.

    See this GitHub help page.
    Then they need to send you the content of their $HOME/.ssh/id_rsa.pub for you to call gitosis-init with to edit the config file appropriately and check in (and push) the keys in keydir/..
    (thank you, ebneter, for the correction).
    For instance, in this mantisbt gitosis management page:

    $ cat > keydir/jsmith.pub
    ...
    ^D
    
    $ git add gitosis.conf keydir/jsmith.pub
    $ git commit -m "Added 'myplugin' repository and 'jsmith' user."
    
    $ git pull --rebase    # make sure we have the latest updates from the server
    $ git push
    

    Note: all user side operations (like ssh-keygen -t rsa -C "my@email.com" or $HOME/.ssh/id_rsa.pub) need to be done or evaluated in a Git bash environment, not in a Dos shell.

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

Sidebar

Related Questions

I have gitosis setup and working wonderfully using ssh. git@domain.com:repository.git works just as expected.
I'm using Git-Svn to interact with a Svn repository at work and I can't
I have just setup a git repository in my 1and1 shared hosting. 1and1 offers
I just set up a Beanstalk account and created a repository using git. My
I just setup Spring Security and it's working great. I can log in and
I have just setup a wordpress forum and I find that all images are
I've setup my environment so I can push to a remote bare repository. I
I've been using for a while a small git repository that has been set-up
I've just installed git on my production server and added all my production code
I've just started using git, and am impressed with the workflow differences from SVN,

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.