I see knife bootstrap failed fingerprint verification even it is in my ~/.ssh/know_hosts file all the time:
The authenticity of host 'mytestserver (10.0.0.2)' can't be established.
fingerprint is SHA256:sMHpDhHtkcLG9S767Z8sOcTn3hL5N4Zhe40S7P48co8.
When I read into the code I see the option user_known_hosts_file is set default /dev/null in lib/train/transports/ssh.rb. It is not working because of the code slice in Net::SSH:
Hello,
I see knife bootstrap failed fingerprint verification even it is in my
~/.ssh/know_hosts
file all the time:When I read into the code I see the option
user_known_hosts_file
is set default/dev/null
in lib/train/transports/ssh.rb. It is not working because of the code slice in Net::SSH:net-ssh/blob/master/lib/net/ssh/known_hosts.rb#L134
The file
~/.ssh/known_hosts
never get chance to be loaded unless theuser_known_hosts_file
is setnil
orfalse
(nil is preferrable).Could you please fix it?