more logic around how ssh is connecting