add test script
print error msg on ssh error and connect/getaddrinfo call error.