SSH env variable

I m trying to connect to a server with byobu enable by default.

In order not to lauch byobu at ssh connexion the LC_BYOBU variable should be set to 0
But
LC_BYOBU=0 ssh server
does not seems to work from haiku terminal and the haiku OpenSSH client.

I can manage to do it from putty.

How can I make the haiku ssh client to correctly send env variable ?

Is there a problem with the ssh client build ?

As long as the server is configured to accept environment variables then you should be able to use: LC_BYOBU=0 ssh -o SendEnv=LC_BYOBU server

Similarly, man ssh turned up this:

Additionally, ssh reads ~/.ssh/environment, and adds lines of
the format ``VARNAME=value’’ to the environment if the file
exists and users are allowed to change their environment. For
more information, see the PermitUserEnvironment option in
sshd_config(5).

The sever does accept env variable.

I don’t have my haiku laptop with me so i can not test but apparently linux default configuration is to have LANG and all LC_* variables sent without explicit action from the user ( i mean without the need of `ssh -o "SendEnv LC_BYOBUˋ)

Which is apparently not the case for haiku default configuration.

May be adding ˋSendEnv LANG LC_*ˋ to the default haiku ssh client conf (ssh/ssh_config ) as most linux distributions could be a good thing no ?

My Arch Linux installations have no entries to accept(or send) variables at all, so it must be specific to just your distro.

it is the case at least for debian and ubuntu (and macos)

Achtung ! i’m not talking about the server side which may or may not accept the env variables (or filter them) which is apparently what you are talking about on the previous post.

i’m talking about the client side ! the client should send by default LANG and all LC_* variables .

From the debian doc :

Note that the Debian openssh-client package sets several options as standard in /etc/ssh/ssh_config which are not the default in ssh(1):

  • SendEnv LANG LC_*
  • HashKnownHosts yes
  • GSSAPIAuthentication yes

https://manpages.debian.org/stretch/openssh-client/ssh_config.5.en.html