fix the empty ssh-keyscan problem and prevent from run_once side effect