OpenSSH always passes LANG and LC* environment variables, even when it doesn't make sense

Bug #1451194 reported by Oded Arbel
6
This bug affects 1 person
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://bugzilla.mindrot.org/show_bug.cgi?id=1285 - that allows users to unset sending specific environment variables on a per-host basis.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.