better ssh & hosts handling