On 2022/04/27 12:14, Harald Dunkel wrote:> I couldn't agree more, but please see the xterm packages on Debian
> and RedHat, and my related question about how to *undo* the
>
> SendEnv LANG LC_*
>
> in Debian's /etc/ssh/ssh_config in my .ssh/config.
SendEnv is additive, it does not replace existing config when you list
a new variable, instead it adds to the existing variables.
So all you can do is add a variable, or remove a variable which was
_already_ set earlier in parsing, not prevent one from being set in later
parsing.
According to the manual, the config files are parsed in this order:
1. command-line options
2. user's configuration file (~/.ssh/config)
3. system-wide configuration file (/etc/ssh/ssh_config)
So, as far as I can tell, you will need to remove the existing entry
from /etc/ssh/ssh_config, there's no other way to override it.