dx ssh: check connectivity to SSH host before calling ssh