I've looked on several systems and seen these lines
111 # Allow client to pass locale environment variables
112 AcceptEnv LANG LC_*
in the /etc/ssh/sshd_config file. I'd like to get this extended to include the "TZ" variable. That way when I travel, and connect to some remote cluster, the dates on everything will be relative to my current timezone.
/etc/ssh/ssd_config
is managed by the System Administrator. It's not that TZ is necessarily insecure, it's that the System Admin doesn't have the spare time to ensure (and put his reputation on the line) that exportingTZ
is secure. – waltinator Aug 01 '23 at 01:16https://github.com/openssh/openssh-portable/blob/master/sshd_config
so I'm guessing that the change goes in at the Debian/Fedora etc. level.
– Carl Ponder Aug 01 '23 at 10:48ssh -t server TZ=$TZ bash
– muru Aug 04 '23 at 12:14