<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin-top:6.0pt;
        margin-right:0cm;
        margin-bottom:6.0pt;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.Code, li.Code, div.Code
        {mso-style-name:Code;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:22.7pt;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        mso-fareast-language:EN-US;
        font-weight:bold;}
span.EmailStyle18
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
.MsoPapDefault
        {mso-style-type:export-only;
        margin-top:6.0pt;
        margin-right:0cm;
        margin-bottom:6.0pt;
        margin-left:0cm;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Devs<o:p></o:p></p>
<p class="MsoNormal">Suddenly I can’t push to (a non-master branch on) gitlab.haskell.org.<o:p></o:p></p>
<p class="MsoNormal">In .git/config I have<o:p></o:p></p>
<p class="Code">[remote "origin"]<o:p></o:p></p>
<p class="Code">  url = https://gitlab.haskell.org/ghc/ghc<o:p></o:p></p>
<p class="Code">  fetch = +refs/heads/*:refs/remotes/origin/*<o:p></o:p></p>
<p class="Code">[branch "master"]<o:p></o:p></p>
<p class="Code">  remote = origin<o:p></o:p></p>
<p class="Code">  merge = refs/heads/master<o:p></o:p></p>
<p class="MsoNormal">An attempt to push leads to a request for a username.  If I enter one, a request for a password.<o:p></o:p></p>
<p class="Code">simonpj@MSRC-3645512:~/code/HEAD$ git push origin wip/T16735<o:p></o:p></p>
<p class="Code">Username for 'https://gitlab.haskell.org':   C-c C-c<o:p></o:p></p>
<p class="MsoNormal">I thought I had SSH keys uploaded.  But in fact I found that my id_rsa.pub was a bit different to the one in gitlab.  Not sure _<i>how</i>_ that happened, or why it hasn’t bitten before.<o:p></o:p></p>
<p class="MsoNormal">So I uploaded a new id_rsa.pub key.<o:p></o:p></p>
<p class="MsoNormal">Same behaviour.<o:p></o:p></p>
<p class="MsoNormal">So I tried ssh -v gitlab.haskell.org, and got the output below.   It seems to skip id_dsa, but doesn’t even try id_rsa. 
<o:p></o:p></p>
<p class="MsoNormal">Can anyone help? This is tiresome.<o:p></o:p></p>
<p class="MsoNormal">Thanks<o:p></o:p></p>
<p class="MsoNormal">Simon<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="Code">simonpj@MSRC-3645512:~/code/HEAD$ ssh -v gitlab.haskell.org<o:p></o:p></p>
<p class="Code">OpenSSH_7.6p1 Ubuntu-4, OpenSSL 1.0.2n  7 Dec 2017<o:p></o:p></p>
<p class="Code">debug1: Reading configuration data /home/simonpj/.ssh/config<o:p></o:p></p>
<p class="Code">debug1: Reading configuration data /etc/ssh/ssh_config<o:p></o:p></p>
<p class="Code">debug1: /etc/ssh/ssh_config line 19: Applying options for *<o:p></o:p></p>
<p class="Code">debug1: Connecting to gitlab.haskell.org [2604:1380:0:8900::3] port 22.<o:p></o:p></p>
<p class="Code">debug1: Connection established.<o:p></o:p></p>
<p class="Code">debug1: identity file /home/simonpj/.ssh/id_rsa type 0<o:p></o:p></p>
<p class="Code">debug1: key_load_public: No such file or directory<o:p></o:p></p>
<p class="Code">debug1: identity file /home/simonpj/.ssh/id_rsa-cert type -1<o:p></o:p></p>
<p class="Code">debug1: identity file /home/simonpj/.ssh/id_dsa type 1<o:p></o:p></p>
<p class="Code">debug1: key_load_public: No such file or directory<o:p></o:p></p>
<p class="Code">debug1: identity file /home/simonpj/.ssh/id_dsa-cert type -1<o:p></o:p></p>
<p class="Code">debug1: key_load_public: No such file or directory<o:p></o:p></p>
<p class="Code">debug1: identity file /home/simonpj/.ssh/id_ecdsa type -1<o:p></o:p></p>
<p class="Code">debug1: key_load_public: No such file or directory<o:p></o:p></p>
<p class="Code">debug1: identity file /home/simonpj/.ssh/id_ecdsa-cert type -1<o:p></o:p></p>
<p class="Code">debug1: key_load_public: No such file or directory<o:p></o:p></p>
<p class="Code">debug1: identity file /home/simonpj/.ssh/id_ed25519 type -1<o:p></o:p></p>
<p class="Code">debug1: key_load_public: No such file or directory<o:p></o:p></p>
<p class="Code">debug1: identity file /home/simonpj/.ssh/id_ed25519-cert type -1<o:p></o:p></p>
<p class="Code">debug1: Local version string SSH-2.0-OpenSSH_7.6p1 Ubuntu-4<o:p></o:p></p>
<p class="Code">debug1: Remote protocol version 2.0, remote software version OpenSSH_7.9<o:p></o:p></p>
<p class="Code">debug1: match: OpenSSH_7.9 pat OpenSSH* compat 0x04000000<o:p></o:p></p>
<p class="Code">debug1: Authenticating to gitlab.haskell.org:22 as 'simonpj'<o:p></o:p></p>
<p class="Code">debug1: SSH2_MSG_KEXINIT sent<o:p></o:p></p>
<p class="Code">debug1: SSH2_MSG_KEXINIT received<o:p></o:p></p>
<p class="Code">debug1: kex: algorithm: curve25519-sha256@libssh.org<o:p></o:p></p>
<p class="Code">debug1: kex: host key algorithm: ssh-ed25519<o:p></o:p></p>
<p class="Code">debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none<o:p></o:p></p>
<p class="Code">debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none<o:p></o:p></p>
<p class="Code">debug1: expecting SSH2_MSG_KEX_ECDH_REPLY<o:p></o:p></p>
<p class="Code">debug1: Server host key: ssh-ed25519 SHA256:wtE9yoEHLsotzqKfbDs1JIqR+c8ZZyW+FAJAmteBfcI<o:p></o:p></p>
<p class="Code">debug1: Host 'gitlab.haskell.org' is known and matches the ED25519 host key.<o:p></o:p></p>
<p class="Code">debug1: Found key in /home/simonpj/.ssh/known_hosts:7<o:p></o:p></p>
<p class="Code">debug1: rekey after 134217728 blocks<o:p></o:p></p>
<p class="Code">debug1: SSH2_MSG_NEWKEYS sent<o:p></o:p></p>
<p class="Code">debug1: expecting SSH2_MSG_NEWKEYS<o:p></o:p></p>
<p class="Code">debug1: SSH2_MSG_NEWKEYS received<o:p></o:p></p>
<p class="Code">debug1: rekey after 134217728 blocks<o:p></o:p></p>
<p class="Code">debug1: Skipping ssh-dss key /home/simonpj/.ssh/id_dsa - not in PubkeyAcceptedKeyTypes<o:p></o:p></p>
<p class="Code">debug1: SSH2_MSG_EXT_INFO received<o:p></o:p></p>
<p class="Code">debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521><o:p></o:p></p>
<p class="Code">debug1: SSH2_MSG_SERVICE_ACCEPT received<o:p></o:p></p>
<p class="Code">debug1: Authentications that can continue: publickey,password,keyboard-interactive<o:p></o:p></p>
<p class="Code">debug1: Next authentication method: publickey<o:p></o:p></p>
<p class="Code">debug1: Offering public key: RSA SHA256:H1l824hIxHozwRuEqdaYJjW10mRRlQVUhxREvuseqtU /home/simonpj/.ssh/id_rsa<o:p></o:p></p>
<p class="Code">debug1: Authentications that can continue: publickey,password,keyboard-interactive<o:p></o:p></p>
<p class="Code">debug1: Trying private key: /home/simonpj/.ssh/id_ecdsa<o:p></o:p></p>
<p class="Code">debug1: Trying private key: /home/simonpj/.ssh/id_ed25519<o:p></o:p></p>
<p class="Code">debug1: Next authentication method: keyboard-interactive<o:p></o:p></p>
<p class="Code">Password:   C-c C-c<o:p></o:p></p>
<p class="Code"><o:p> </o:p></p>
<p class="Code">simonpj@MSRC-3645512:~/code/HEAD$ <o:p></o:p></p>
<p class="Code" style="margin-left:0cm"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
</div>
</body>
</html>