# ProxyCommand ssh -q -W %h:%p gateway.example.com
# RekeyLimit 1G 1h
-# Send locale environment variables #367017
-SendEnv LANG LC_*
+# Send locale environment variables. #367017
+SendEnv LANG LC_ALL LC_COLLATE LC_CTYPE LC_MESSAGES LC_MONETARY LC_NUMERIC LC_TIME LANGUAGE LC_ADDRESS LC_IDENTIFICATION LC_MEASUREMENT LC_NAME LC_PAPER LC_TELEPHONE
+
+# Send COLORTERM to match TERM. #658540
+SendEnv COLORTERM
# PermitTTY no
# ForceCommand cvs server
-# Allow client to pass locale environment variables #367017
-AcceptEnv LANG LC_*
+# Allow client to pass locale environment variables. #367017
+AcceptEnv LANG LC_ALL LC_COLLATE LC_CTYPE LC_MESSAGES LC_MONETARY LC_NUMERIC LC_TIME LANGUAGE LC_ADDRESS LC_IDENTIFICATION LC_MEASUREMENT LC_NAME LC_PAPER LC_TELEPHONE
+
+# Allow client to pass COLORTERM to match TERM. #658540
+AcceptEnv COLORTERM