VPS bootstrap: stop accepting the client's locale over SSH #2
Reference in New Issue
Block a user
Delete Branch "fix/bootstrap-no-client-locale"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
After bootstrap, every login from a PC with a different locale prints a stack of warnings:
Debian's
sshd_confighasAcceptEnv LANG LC_*, and the client'sssh_configsendsLANG/LC_*. The server only generatesen_US.UTF-8.Fix
During hardening, comment out
AcceptEnvso the server uses its ownen_US.UTF-8. The change runs before the existingsshd -tcheck and reload.Test
Ran on
debian:trixiewithopenssh-server: line 114AcceptEnv LANG LC_* COLORTERM NO_COLORgets commented out,sshd -tpasses, andsshd -Tshows no activeacceptenv.Already bootstrapped servers
As root: