On 8/17/22 08:56, Nicolas Kovacs wrote:
To do this, I opened /etc/ssh/ssh_config and found the relevant stanza:
SendEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES SendEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT SendEnv LC_IDENTIFICATION LC_ALL
I simply commented this out and reloaded SSH:
# systemctl reload sshd
First, you are confusing different things here. ssh_config is for the *client*, the /usr/bin/ssh binary used to connect to the server. The thing you restarted is the server sshd, which listens for ssh client connections. You don't need sshd running (and should not have it running) if you are not connecting to that machine. Secondly, for client configuration, the best place is to edit them in ~/.ssh/config . The configuration read order is actually documented right at the top of the manpage for ssh client man ssh_config (there is also manpage for sshd_config) Finally, the configuration setup for SSH is a little strange -- first encountered configuration is the configuration used. Followup configuration encountered does *not* override what was seen before, which is a little counter-intuitive. But then there is SendEnv, which allow you to specify more than one thing on multiple lines which seems against the general setup of the configuration file. Due to this inconsistency, I was not able to override the system config file in this case, which is not good. ssh -v root@vs2 OpenSSH_8.4p1, OpenSSL 1.1.1d 10 Sep 2019 debug1: Reading configuration data /home/adamm/.ssh/config debug1: /home/adamm/.ssh/config line 1: Applying options for vs2 debug1: /home/adamm/.ssh/config line 17: Applying options for * debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 20: Applying options for * ... debug1: Sending env LANG = en_US.UTF-8 So, I made a bug report for this that you can add yourself to, if you want. https://bugzilla.suse.com/1202475 - Adam