Skip to content

lisa.target: Resolve known_hosts path when strict_host_check=True

Douglas Raillard requested to merge douglas-raillard-arm/lisa:_home_pr90516 into main

FIX

When strict_host_check=True, resolve the path to known_hosts SSH file so that the target object can be reused without troubles in a different user namespace. Otherwise, the home folder would resolve to another path, leading to not being able to reload the file content and ultimately failure of the check.

Makes sense in combination with the devlib counterpart: https://github.com/ARM-software/devlib/pull/696

But it also works with devlib before that PR, so it can be merged at any time.

Edited by Douglas Raillard

Merge request reports