On 2024-01-14 23:19, Matthias Apitz wrote:
The env var is not published to the sshd and sftp-server processes:


That was my mistake... PermitUserEnvironment is disabled by default.

https://github.com/openssh/openssh-portable/blob/master/sshd_config#L94