Improved SSH logging for connections