Closed bmah888 closed 8 years ago
On the other hand this bug might be manifesting itself slightly differently now compared to the past, from the log file snippets above it appears that netshell thinks it's running in standalone mode, which is a relatively recent addition. See reference to /Users/bmah/.ssh/netshell-hostkey.ser
.
@lomaxfrog suggested that the problem is that standalone mode defaults to true. If we put "standalone":"false" in the configuration file, this problem doesn't occur. We've agreed that I'll change the default to false.
The work is done, but re-opening it to get it into the Done pipeline.
The SSH server in netshell seems to forget its host key on every Karaf startup and generates a new one. This results in SSH clients getting confused because the host key keeps changing on them, and they continually warn of MITM attacks on the first SSH login attempt to a new netshell process.
Examination of the logs reveals a possible cause, that the SSH daemon is not, for some reason, able to read a previously-generated host key that is saved in a file:
The above outputs were taken on a netshell integrated with ODL. This bug has existed for many months, it is not new behavior.