move `updateKnownHosts` to `connector`