SSH failing on Windows

I'm continuing the saga of setting up my lovely Surface Book. Succeeding, just, but see below. Now my problem is that 'git push' doesn't work. My 'pushurl' is pushurl = ssh://git@git.haskell.org/ghc.git which is correct I think. I have a .ssh directory set up, with a copy of all the files that used to work. But 'git push' says /c/code/HEAD$ git push Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. So presumably it's a ssh problem. Turned out (via ssh -v) that I was getting debug1: Skipping ssh-dss key /c/users/simonpj/.ssh/id_dsa for not in PubkeyAcceptedKeyTypes I solved this by adding to .ssh/config the line PubkeyAcceptedKeyTypes +ssh-dss But I guess this is bad practice. How would I (a) generate RSA keys (b) push them to git.haskell.org (or wherever they need to go) Is there a wiki page describing this? The (b) part at least is GHC specific, as is the strange pushurl. Thanks Simon

Simon Peyton Jones via ghc-devs wrote:
Now my problem is that 'git push' doesn't work. My 'pushurl' is pushurl = ssh://git@git.haskell.org/ghc.git which is correct I think.
Try pushurl = git@git.haskell.org/ghc.git I think the "ssh://" was for older versions of git. Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/

Simon Peyton Jones via ghc-devs wrote:
But 'git push' says
/c/code/HEAD$ git push
Permission denied (publickey).
fatal: Could not read from remote repository.
And then I read the error message. That message suggests that the SSH key is not known by the remote repository. Did you copy your SSH keys from your old machine to your new machine? Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/

On 22. 8. 2016 12:15, Erik de Castro Lopo wrote:
And then I read the error message. That message suggests that the SSH key is not known by the remote repository. Did you copy your SSH keys from your old machine to your new machine?
That was maybe also covered, see the quote below.
Simon Peyton Jones via ghc-devs wrote:
I have a .ssh directory set up, with a copy of all the files that used to work.
-- David Macek

Thanks. Yes, I did copy the ssh keys over. As my email said, I think the underlying problem is that I should be using RSA keys not DSA keys. So I have to - generate a RSA key; I can manage that but I'm anxious about overwriting my existing DSA key - push the new RSA key to git.haskell.org, or ghc.haskell.org, or something I'm very unsure how to do that, since I think those machines don’t accept ssh connections Thanks Simon | -----Original Message----- | From: ghc-devs [mailto:ghc-devs-bounces@haskell.org] On Behalf Of Erik | de Castro Lopo | Sent: 22 August 2016 11:16 | To: ghc-devs@haskell.org | Subject: Re: SSH failing on Windows | | Simon Peyton Jones via ghc-devs wrote: | | > | > But 'git push' says | > | > /c/code/HEAD$ git push | > | > Permission denied (publickey). | > | > fatal: Could not read from remote repository. | | And then I read the error message. That message suggests that the SSH | key is not known by the remote repository. Did you copy your SSH keys | from your old machine to your new machine? | | Erik | -- | ---------------------------------------------------------------------- | Erik de Castro Lopo | https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fwww.me | ga- | nerd.com%2f&data=01%7c01%7csimonpj%40microsoft.com%7c93c60ec85fc048c5a | 7af08d3ca754fac%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=dv4op8B%2 | bTYfQFBJtMn%2bwKXX0vQBemaPCyp135lspxbQ%3d | _______________________________________________ | ghc-devs mailing list | ghc-devs@haskell.org | https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fmail.h | askell.org%2fcgi-bin%2fmailman%2flistinfo%2fghc- | devs&data=01%7c01%7csimonpj%40microsoft.com%7c93c60ec85fc048c5a7af08d3 | ca754fac%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=Za%2fEdMqShmQ%2b | 0ax9PnhMUfHL77VzNZeXUiuBN34yIoA%3d
participants (3)
-
David Macek
-
Erik de Castro Lopo
-
Simon Peyton Jones