diff --git a/php/WP_CLI/Runner.php b/php/WP_CLI/Runner.php
index <HASH>..<HASH> 100644
--- a/php/WP_CLI/Runner.php
+++ b/php/WP_CLI/Runner.php
@@ -421,8 +421,7 @@ class Runner {
 
 		$pre_cmd = getenv( 'WP_CLI_SSH_PRE_CMD' );
 		if ( $pre_cmd ) {
-			$message = WP_CLI::colorize( "%yWP_CLI_SSH_PRE_CMD found, executing the following command(s) on the remote machine:%n\n" )
-				. WP_CLI::colorize( '%Y' ) . $pre_cmd . WP_CLI::colorize( '%n' );
+			$message = WP_CLI::warning( "WP_CLI_SSH_PRE_CMD found, executing the following command(s) on the remote machine:\n $pre_cmd" );
 
 			WP_CLI::log( $message );
Use warning instead of colorize to fix warning output