Hello all,<div><br></div><div>I solved the problem.</div><div><br></div><div>I used the method explained below with an addition which I came up with last night.</div><div>I added a dsa key along with the rsa key </div><div>
<br></div><div>and changed the line: <i>IdentityFile ~/.ssh/id_rsa</i></div><div> to<i> IdentityFile ~/.ssh/id_dsa</i></div><div><i><br></i></div><div>before i went to sleep and this morning it worked!</div>
<div><br></div><div>However I kept the <meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">*.<a href="http://kde.org/" target="_blank" style="color: rgb(51, 51, 204); ">kde.org</a></span></div>
<div><a href="http://kde.org/" target="_blank" style="color: rgb(51, 51, 204); "></a><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">and user name unchanged.</span></font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">Strange tough that there seems to be no commonly working method.</span></font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">Any ways thanks for you replies.</span></font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">Regards,</span></font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">Samuel <br></span></font><br><div class="gmail_quote">On Sun, May 29, 2011 at 12:01 PM, Elvis Stansvik <span dir="ltr"><<a href="mailto:elvstone@gmail.com">elvstone@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">2011/5/28 Radosław Wicik <<a href="mailto:radoslaw@wicik.pl">radoslaw@wicik.pl</a>>:<br>
<div><div></div><div class="h5">> Dnia 2011-05-28, o godz. 16:32:17<br>
> Samuel Buttigieg <<a href="mailto:sambut1987@gmail.com">sambut1987@gmail.com</a>> napisał(a):<br>
><br>
>> Hello fellow coders/hackers<br>
>><br>
>> I have recently been trying to push changes to git via ssh however I<br>
>> ran into problems and I tried various options<br>
>> which none of them seem to work. I was talking to Boemann and<br>
>> informed me that all of his students have similar<br>
>> difficulties and so I decided to start up a thread where we can toss<br>
>> around a few ideas. This is what I did:<br>
>><br>
>> 1.) I generated the keys using: ssh-keygen -t rsa<br>
>> 2.) I saved them to the default ~/.ssh location<br>
>> 3.) I uploaded the public on kde identity<br>
>> 4.) I set ~/.ssh/config as: Host *.<a href="http://kde.org" target="_blank">kde.org</a><br>
>> User buttigieg<br>
>> IdentityFile<br>
>> ~/.ssh/id_rsa 5.) I set .gitconfig as:<br>
>> [url "ssh://<a href="http://git@git.kde.org/" target="_blank">git@git.kde.org/</a>"]<br>
>> insteadOf = kde:<br>
>> [user]<br>
>> name = Samuel Buttigieg<br>
>> email = <a href="mailto:sambut1987@gmail.com">sambut1987@gmail.com</a><br>
>> [push]<br>
>> default = current<br>
>> [color]<br>
>> diff = auto<br>
>> status = auto<br>
>> branch = auto<br>
>> interactive = auto<br>
>> ui = true<br>
>> pager = true<br>
>><br>
>> 6.) I also sett he access rights:<br>
>> chmod 700 $HOME/.ssh<br>
>> chmod 600 $HOME/.ssh/id_rsa<br>
>> chmod 600 $HOME/.ssh/id_rsa.pub<br>
>><br>
>> 7.) waited two days for key to be synced<br>
>><br>
>> However each time I try to do a git push origin master<br>
>> or ssh -v <a href="http://git.kde.org" target="_blank">git.kde.org</a><br>
>><br>
>> I get: Permission denied (publickey) all the time.<br>
>><br>
>> *Can someone who has or had a similar problem throw some ideas?*<br>
>><br>
>> Thanks for your help,<br>
>> Samuel<br>
><br>
> As far as I know, we don't use bare git system, we are using<br>
> gitoliate or something.<br>
><br>
> authorization is based only on keys,<br>
> you should always use "git" as login<br>
> and in your ssh_config you have:<br>
>> User buttigieg<br>
><br>
> I'm not sure what is more important ssh_config or command line params<br>
> but maybe adding something like this will help:<br>
> Host <a href="http://git.kde.org" target="_blank">git.kde.org</a><br>
> User git<br>
> IdentityFile ~/.ssh/id_rsa<br>
><br>
> Probably before 'host *.<a href="http://kde.org" target="_blank">kde.org</a>' <- this I'm not 100% sure.<br>
<br>
</div></div>I agree with Radek here; first try to remove your entire Host<br>
*.<a href="http://kde.org" target="_blank">kde.org</a> directive in .ssh/config and see if that solves it. 'git' is<br>
the username that should always be used. But I think command line<br>
username should override that though.<br>
<br>
Have you tried ssh -vvv <a href="mailto:git@git.kde.org">git@git.kde.org</a> ? Maybe the verbose output<br>
from ssh when connecting gives any clues about the problems.<br>
<br>
Regards,<br>
Elvis<br>
<br>
><br>
> Radek<br>
><br>
> _______________________________________________<br>
> calligra-devel mailing list<br>
> <a href="mailto:calligra-devel@kde.org">calligra-devel@kde.org</a><br>
> <a href="https://mail.kde.org/mailman/listinfo/calligra-devel" target="_blank">https://mail.kde.org/mailman/listinfo/calligra-devel</a><br>
><br>
><br>
_______________________________________________<br>
calligra-devel mailing list<br>
<a href="mailto:calligra-devel@kde.org">calligra-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/calligra-devel" target="_blank">https://mail.kde.org/mailman/listinfo/calligra-devel</a><br>
</blockquote></div><br></div>