changed the mechanisms for testing SSH connectivity.