Cleaning up formatting and adding some debugging output to the TCP connection testing for SSH.