OpenSSH always passes LANG and LC* environment variables, even when it doesn't make sense
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
portable OpenSSH |
Unknown
|
Unknown
|
|||
openssh (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
When using OpenSSH to access a remote server, the local user's locale environment variables are always sent to the remote server, because the default installation has /etc/ssh/ssh_config configured with "SendEnv LANG LC_*"
This often makes no sense, as the local user likely has their locale set to some non-US locale (e.g. my user account uses "he_IL.UTF-8" for most locale environment settings), while it is unlikely that this local will be setup on the remote. Basically the only use case where this makes sense is if SSH is only used to access machines on a local network where all machines have users configured in the same way.
Changing this setting require root permissions on the local machine and is also not obvious what needs to be changed.
A better idea might be to change the defaults to not send local locale environment settings, or apply the patch from OpenSSH bug #1285 - https:/