<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div name="messageBodySection">
<div dir="auto">What tool did you use to convert from PEM to RFC4716 format?  Can you share the tool/command invocation and output?<br />
<br />
Sorry about the PuTTY misdirect.  I got confused myself during the research into Pageant.. </div>
</div>
<div name="messageSignatureSection"><br />
— jb</div>
<div name="messageReplySection">On Mar 27, 2022, 12:09 -0400, Marco Antoniotti <marco.antoniotti@unimib.it>, wrote:<br />
<blockquote type="cite" style="border-left-color: grey; border-left-width: thin; border-left-style: solid; margin: 5px 5px;padding-left: 10px;">
<div dir="ltr">
<div>Hi<br />
<br /></div>
<div>thanks for the help.</div>
<div><br /></div>
<div>No.  I am not using PuTTY as terminal on W11.<br />
<br /></div>
<div>I was able to upload the new key to Gitlab, but it still does not work.<br />
<br /></div>
<div>Pageant seems to be running, and Sourcetree gives me a very suspicious message.<br />
<br />
<div style="margin-left:40px">git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks push -v --tags --set-upstream origin master:master<br />
Pushing to common-lisp.net:mantoniotti/cl-plot.git<br />
<b>Server refused public-key signature despite accepting key!</b><br />
FATAL ERROR: Network error: Software caused connection abort<br />
fatal: Could not read from remote repository.<br />
<br />
Please make sure you have the correct access rights<br />
and the repository exists.</div>
</div>
<div><br /></div>
<div>I am at a loss.  This should not be so difficult.<br /></div>
</div>
<br />
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Sun, Mar 27, 2022 at 5:16 PM Jon Boone <<a href="mailto:ipmonger@delamancha.org">ipmonger@delamancha.org</a>> wrote:<br /></div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div name="messageBodySection">
<div dir="auto">Hi Marco!<br />
<br />
I know this can all be very frustrating, but hang in there!<br />
<br />
The two public keys you have from pageant are in PEM (aka base64) format.  That format is no longer accepted by Github/Gitlab, which require the RFC4716 format instead.<br />
<br />
I am wondering if you are using PuTTY as your terminal client on Windows 11.  If so, you might find this particular section of documentation for working with PuTTY from Oracle to be helpful:  <a href="https://docs.oracle.com/en/cloud/paas/goldengate-cloud/tutorial-change-private-key-format/#(Optional)ConvertppkformattoOpenSSH" target="_blank">https://docs.oracle.com/en/cloud/paas/goldengate-cloud/tutorial-change-private-key-format/#(Optional)ConvertppkformattoOpenSSH</a><br />
<br />
In particular, by exporting the key from the PPK format PuTTY uses to the OpenSSH format, you can then import the OpenSSH format into both GitHub and GitLab.</div>
</div>
<div name="messageSignatureSection"><br />
— jb</div>
<div name="messageReplySection">On Mar 27, 2022, 10:41 -0400, Marco Antoniotti <<a href="mailto:marco.antoniotti@unimib.it" target="_blank">marco.antoniotti@unimib.it</a>>, wrote:<br />
<blockquote type="cite" style="border-left:thin solid grey;margin:5px;padding-left:10px">
<div dir="ltr">Oh well. I have a ssh-agent running.  I am using Git Bash on a W11 machine.<br />
<br />
<span style="font-family:monospace">$ ssh-add<br /></span>
<div><span style="font-family:monospace">Could not open a connection to your authentication agent.</span></div>
<div><br /></div>
<div>BTW.  I am also trying to get SourceTree to work.  I have Pageant running with my keys loaded.<br />
<br /></div>
<div>I noticed that I do not have my most recent public key loaded on Gitlab (but it has two old ones that *shoould* still work).  But the site does not understand (and <b>I do not fuc*ing understand</b>) the format in which the key should be pasted in there.</div>
<div><br /></div>
<div>I generated the key with Pageant and the file contains what you see in the screenshots.</div>
<div><br /></div>
<div>I apologize for the tone, but I really really believe that both Github and Gitlab have gone way off on a tangent with all of this.  Especially because they have not gone back to git to improve the messaging.</div>
<div><br /></div>
<div>All the best</div>
<div><br /></div>
<div>Marco</div>
<div><br /></div>
<div><br /></div>
<div><br /></div>
<div><br /></div>
</div>
<br />
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Sun, Mar 27, 2022 at 4:22 PM Jon Boone <<a href="mailto:ipmonger@delamancha.org" target="_blank">ipmonger@delamancha.org</a>> wrote:<br /></div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div name="messageBodySection">
<div dir="auto">If you’re using a bash/zsh environment, use ‘ssh-add’ to load your private keys into the ssh agent before you interact with the remote repository.</div>
</div>
<div name="messageSignatureSection"><br />
— jb</div>
<div name="messageReplySection">On Mar 27, 2022, 10:20 -0400, Marco Antoniotti <<a href="mailto:marco.antoniotti@unimib.it" target="_blank">marco.antoniotti@unimib.it</a>>, wrote:<br />
<blockquote type="cite" style="border-left:thin solid grey;margin:5px;padding-left:10px">
<div dir="ltr">
<div>Hi</div>
<div><br /></div>
<div>I am trying to import a repo in Gitlab.  I just created the repo using the web interface (CL-PLOT).</div>
<div>This is what the instructions on the site say.<br />
<br /></div>
<div>
<pre>cd existing_repo
git remote rename origin old-origin
git remote add origin <span>git@common-lisp.net:mantoniotti/cl-plot.git</span>
<span>git push -u origin --all
git push -u origin --tags</span></pre></div>
<div><br /></div>
<div>Once I try <span style="font-family:monospace">git push</span> I get the dreaded message.</div>
<div><br /></div>
<div><span style="font-family:monospace">$ git push -u origin --all<br />
<a href="mailto:git@common-lisp.net" target="_blank">git@common-lisp.net</a>: Permission denied (publickey).<br />
fatal: Could not read from remote repository.<br />
<br />
Please make sure you have the correct access rights<br />
and the repository exists.</span><br /></div>
<div><br /></div>
<div>Why?  I.e., why doesn't git understand the 2FA I set up a long time ago?  Why I cannot get my SSH keys to work?  How can I change the remote spec in order not to have to go through this every other month?</div>
<div><br /></div>
<div>Thank you</div>
<div><br /></div>
<div>All the best</div>
<div><br /></div>
<div>Marco<br /></div>
<div><br />
<br /></div>
<div><br />
--<br />
<div dir="ltr">
<div dir="ltr">Marco Antoniotti, Professor                           tel. +39 - 02 64 48 79 01<br />
DISCo, Università Milano Bicocca U14 2043   <a href="http://dcb.disco.unimib.it" target="_blank">http://dcb.disco.unimib.it</a><br />
Viale Sarca 336<br />
I-20126 Milan (MI) ITALY</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
<br clear="all" />
<br />
--<br />
<div dir="ltr">
<div dir="ltr">Marco Antoniotti, Professor                           tel. +39 - 02 64 48 79 01<br />
DISCo, Università Milano Bicocca U14 2043   <a href="http://dcb.disco.unimib.it" target="_blank">http://dcb.disco.unimib.it</a><br />
Viale Sarca 336<br />
I-20126 Milan (MI) ITALY</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
<br clear="all" />
<br />
--<br />
<div dir="ltr" class="gmail_signature">
<div dir="ltr">Marco Antoniotti, Professor                           tel. +39 - 02 64 48 79 01<br />
DISCo, Università Milano Bicocca U14 2043   <a href="http://dcb.disco.unimib.it" target="_blank">http://dcb.disco.unimib.it</a><br />
Viale Sarca 336<br />
I-20126 Milan (MI) ITALY</div>
</div>
</blockquote>
</div>
</body>
</html>