shal...@servelots.com writes:
> This is the first time I'm using gitorious. I'm having an authentication
> issue with 'git push origin master' command.
>
> I have created this repo g...@git.pantoto.org:hhs/hhs.git. Generated the ssh
> public key and uploaded the same. Then, while doing git push origin master,
> I was expecting this should accept my ssh password but instead reported me
> 'permission denied error'. I have followed all the steps properly. Even
> added these
>git config --global user.name ""
>git config --global user.email ""
>
> Is user name the problem? It seems I cannot change the user name while
> creating the project/repo. It is always g...@git.pantoto.org: name>/.git. Where am I going wrong? Could somebody help
> please?
Gitorious uses the same system user account for all users connecting to
the server (usually the git user), and has its own
authentication/authorization built on top of that. Your server will
generate the appropriate SSH URLs to be used, regardless which user is
connecting, and it will look like this:
git@:/.git
Your Git user name and email aren't used for
authentication/authorization by Gitorious, they're only used when
you commit to your (local) repository.
Technicall, Gitorious relies on OpenSSH's support for a command
specification in the git user's ~/.ssh/authorized_keys file. It will
look like this:
command="gitorious john" your-ssh-public-key-here
when you connect to the server over SSH, OpenSSH will look for a public
key matching the private key used to connect, and when it finds the
first match it will execute `gitorious john` (provided your Gitorious
username is "john"). From there on, Gitorious takes over.
Cheers,
- Marius
--
To post to this group, send email to gitorious@googlegroups.com
To unsubscribe from this group, send email to
gitorious+unsubscr...@googlegroups.com