used to test ssh access, using credentials provided from input, and reading from a file.