Add code for setup of SSH connection and connection attempt with error handling.