feat(ssh): ssh detects unit or machine automatically