From fdf825537219481e59ff5d34d55332e200da9cd6 Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Sat, 12 Sep 2015 11:42:44 +0300 Subject: [PATCH] ssh: send/accept also TZ TERM --- .mikaela/ssh/config | 5 +++-- etc/ssh/ssh_config | 5 +++-- etc/ssh/sshd_config | 7 +++---- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.mikaela/ssh/config b/.mikaela/ssh/config index 79f9c246..276028f1 100644 --- a/.mikaela/ssh/config +++ b/.mikaela/ssh/config @@ -22,8 +22,9 @@ Host * # Always try public key authentication. PubkeyAuthentication yes - # Send LANG, LANGUAGE and LC_* environment variables to the server. - SendEnv LANG LANGUAGE LC_* + # Send needed environment variables. I don't like setting wildcards + # and LC_ALL is disabled on purpouse. + SendEnv LANG LANGUAGE LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT LC_IDENTIFICATION TERM TZ # If the server doesn't reply in "three" pings, connection is dead. # Defaults to 3 anyway, but I add it here for clearity and diff --git a/etc/ssh/ssh_config b/etc/ssh/ssh_config index e968feb7..e47858fc 100644 --- a/etc/ssh/ssh_config +++ b/etc/ssh/ssh_config @@ -23,8 +23,9 @@ Host * # Always try public key authentication. PubkeyAuthentication yes - # Send LANG, LANGUAGE and LC_* environment variables to the server. - SendEnv LANG LANGUAGE LC_* + # Send needed environment variables. I don't like setting wildcards + # and LC_ALL is disabled on purpouse. + SendEnv LANG LANGUAGE LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT LC_IDENTIFICATION TERM TZ # If the server doesn't reply in three "pings", connection is dead. # Defaults to 3 anyway, but I add it here for clearity and diff --git a/etc/ssh/sshd_config b/etc/ssh/sshd_config index 371d3d48..2ae1605d 100644 --- a/etc/ssh/sshd_config +++ b/etc/ssh/sshd_config @@ -6,10 +6,9 @@ # where some comments are took. Some options look like I don't want to # change them to get updates when defaults change. -# Allow the client to send preferred locales. -# LC_ALL is intentionally missing as it's only for testing purpouses -# (set it on the server, not in client if it's seriously needed). -AcceptEnv LANG LANGUAGE LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT LC_IDENTIFICATION +# Allow the client to send needed environment variables. I don't like +# setting wildcards and LC_ALL is disabled on purpouse. +AcceptEnv LANG LANGUAGE LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT LC_IDENTIFICATION TERM TZ # IPv4 & IPv6 AddressFamily any