Score:0

Cannot update Github key from CLI

tr flag

I have only just tried to use github via git on the cli for the first time since they leaked their key and it needed resetting.

I added the new key into known_hosts under users/luke/.ssh (Windows 11) (didn't work so I removed all existing known hosts) and I also removed the known hosts them from the Registry (since Putty stores them there) but when I run any git command to github, it shows the warning about a new connection/signature and asks me "If you trust this host, enter "y" to add the key...." but I cannot type anything at the prompt other than ctrl-C to cancel.

This is in the terminal window of VSCode but I tried the same in git bash and get the same problem: A prompt but entry is not accepted from the keyboard. I tried Powershell terminal but they all behave in the same way.

I can't think what might be wrong, never seen this before and the only other reference to it on StackOverflow said to run up some unamed GUI to modify the remote repository so I'm at a loss as to what I can do.

Please can someone help?

Score:0
by flag

I had the same problem.

You can just open Putty (application) and connect to github:

  • Host name: github.com
  • Port: 22

Click "open" and then there will be a popover asking you to trust the connection, click "yes" and then git will work again!

Luke Briner avatar
tr flag
Yes, I found it out under the "known issues" for Putty on Windows, although I can't say I ever seen it before.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.