SSH connection not working
-
Hello,
after change the defect moden in my house, I can't connect a Linux
terminal by SSH to my Omega2Pro anymore...
Before was working perfect.
I prtsc the error message below.!
Any help, please.
-
@Lino-Amorim There's really nothing "wrong" here. I've done this hundreds of times over the years. Simply follow the instruction given - remove the newly "bad" host key using the ssh-keygen command, or hand edit the file yourself (line 1), then go through the process of first connection again.
-
@Lino-Amorim @William-Scott is correct, I suspect the IP of your device changed as a result of changing your router, this will trigger the warning message.
-
@crispyoz @Lino-Amorim Absolutely. I didn't linger on the topic long enough to consider causation. You are likely using dynamic IP address allocation at the router. This results in the "dynamic" that isn't really a problem, if you're comfortable with it. The address lease will expire at some time (typical is 24 hours) and the same address will be re-leased if the client is still connected. If the client is not connected at lease expiration the next connection may result in a new IP address, even if you don't have a new router.
In my home I prefer more stability. As such most of the 20 or so IP addresses in use are fixed, with a few dynamic. You can do this by turning off IP address allocation at the router and begin using your Linux box as a dhcp server. You would pair up a device MAC address and the IP address you desire in the /etc/dhcpd.conf file. There's more to it than that, but not much more.
If you'd like to go down this path, please do a little on-line research and take a crack at it. There's assistance available here. The folks on this forum are great!
--Bill
-
This post is deleted!
-
This post is deleted!
-
@William-Scott All set! With the simple: <rm -f .ssh/known_hosts> ! Thanks guys!
-
-
We mention this in our docs: https://docs.onion.io/omega2-docs/factory-reset.html#a-note-about-factory-resets-and-rsa-key-warnings
Does anybody have suggestions on how can we make info like this easier to find?