Skip to main content
9 of 16
edited title
clearlight
  • 259
  • 2
  • 9

How can I replace Raspian SSH host keys if I can't login to pi? ("connection refused")

After configuring a new Raspberry Pi Zero W, I have not been able to ssh into it over WiFi. The IP address is assigned and pingable, but I get 'connection refused' errors.

After some research, I discovered one possible solution is to replace the SSH host keys on the pi.

But it's a Catch-22, because I can't login to the pi to change the keys that I need to change to be able to log into the pi.

What can I do?

clearlight
  • 259
  • 2
  • 9