Method to test ssh connection working