elk-audio / elk-pi

Elk Audio OS binary images for Raspberry Pi
https://elk.audio/
228 stars 12 forks source link

Remote host identification changes on reboot #2

Closed TheRubeThing closed 4 years ago

TheRubeThing commented 4 years ago

Issue Description

When rebooting the board using sudo poweroff and plugging the power back in. The message

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.

is displayed when trying to ssh to the board over ethernet or wifi.

Elk Audio OS version

v0.6.1

Raspberry Pi Model

RPi 3B+

How to reproduce

stez-mind commented 4 years ago

Will be fixed in the next release.

Temporary workaround: edit (as sudo) /etc/ssh/sshd_config

and comment out the last lines:

# HostKey /var/run/ssh/ssh_host_rsa_key
# HostKey /var/run/ssh/ssh_host_ecdsa_key
# HostKey /var/run/ssh/ssh_host_ed25519_key
TheRubeThing commented 4 years ago

Thanks! The workaround works great!

stez-mind commented 4 years ago

Solved properly in 0.7.0