Accordingly to ssh man page -o allows to set the content of a given ssh client option. I would like to unset SendEnv (or set it to empty) in order to avoid locale setup in server side.
I got the desired effect by commenting SendEnv line in ssh_config file. However, it is not a good option for my application.
How to achieve this when running ssh command? I tried ssh -o SendEnv='' server
without success.
It is not possible to do that on the command-line. The SendEnv
option does not overwrite, but append to the existing values.
But you can create a different configuration file, which will not have these options and use -F
option, which will prevent using the global configuration file:
ssh -F /my/specific_ssh_config server