problems with ssh authentication

Samuel Buttigieg sambut1987 at gmail.com
Sun May 29 11:28:51 BST 2011


Hello all,

I solved the problem.

I used the method explained below with an addition which I came up with last
night.
I added a dsa key along with the rsa key

and changed the line: *IdentityFile ~/.ssh/id_rsa*
                            to* IdentityFile ~/.ssh/id_dsa*
*
*
before i went to sleep and this morning it worked!

However I kept the *.kde.org
<http://kde.org/>and user name unchanged.

Strange tough that there seems to be no commonly working method.

Any ways thanks for you replies.

Regards,
Samuel

On Sun, May 29, 2011 at 12:01 PM, Elvis Stansvik <elvstone at gmail.com> wrote:

> 2011/5/28 Radosław Wicik <radoslaw at wicik.pl>:
> > 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.
>
> I agree with Radek here; first try to remove your entire Host
> *.kde.org directive in .ssh/config and see if that solves it. 'git' is
> the username that should always be used. But I think command line
> username should override that though.
>
> Have you tried ssh -vvv git at git.kde.org ? Maybe the verbose output
> from ssh when connecting gives any clues about the problems.
>
> Regards,
> Elvis
>
> >
> > Radek
> >
> > _______________________________________________
> > calligra-devel mailing list
> > calligra-devel at kde.org
> > https://mail.kde.org/mailman/listinfo/calligra-devel
> >
> >
> _______________________________________________
> calligra-devel mailing list
> calligra-devel at kde.org
> https://mail.kde.org/mailman/listinfo/calligra-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/calligra-devel/attachments/20110529/46b86201/attachment.htm>


More information about the calligra-devel mailing list