problems with ssh authentication

Radosław Wicik radoslaw at wicik.pl
Sat May 28 21:11:13 BST 2011


Dnia 2011-05-28, o godz. 16:32:17
Samuel Buttigieg <sambut1987 at gmail.com> napisał(a):

> Hello fellow coders/hackers
> 
> I have recently been trying to push changes to git via ssh however I
> ran into problems and I tried various options
> which none of them seem to work. I was talking to Boemann and
> informed me that all of his students have similar
> difficulties and so I decided to start up a thread where we can toss
> around a few ideas. This is what I did:
> 
> 1.) I generated the keys using: ssh-keygen -t rsa
> 2.) I saved them to the default ~/.ssh location
> 3.) I uploaded the public on kde identity
> 4.) I set ~/.ssh/config as: Host *.kde.org
>                                                 User buttigieg
>                                                 IdentityFile
> ~/.ssh/id_rsa 5.) I set .gitconfig as:
> [url "ssh://git@git.kde.org/"]
>       insteadOf = kde:
> [user]
>       name = Samuel Buttigieg
>       email = sambut1987 at gmail.com
> [push]
>       default = current
> [color]
>       diff = auto
>       status = auto
>       branch = auto
>       interactive = auto
>       ui = true
>       pager = true
> 
> 6.) I also sett he access rights:
> chmod 700 $HOME/.ssh
> chmod 600 $HOME/.ssh/id_rsa
> chmod 600 $HOME/.ssh/id_rsa.pub
> 
> 7.) waited two days for key to be synced
> 
> However each time I try to do a git push origin master
> or ssh -v git.kde.org
> 
> I get: Permission denied (publickey) all the time.
> 
> *Can someone who has or had a similar problem throw some ideas?*
> 
> Thanks for your help,
> Samuel

As far as I know, we don't use bare git system, we are using 
gitoliate or something.

authorization is based only on keys,
you should always use "git" as login
and in your ssh_config you have:
> User buttigieg

I'm not sure what is more important ssh_config or command line params
but maybe adding something like this will help:
  Host git.kde.org
  User git
  IdentityFile ~/.ssh/id_rsa

Probably before 'host *.kde.org' <- this I'm not 100% sure.

Radek
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/calligra-devel/attachments/20110528/342cfb38/attachment.sig>


More information about the calligra-devel mailing list