Skip to content

Instantly share code, notes, and snippets.

@oklahomer
Created July 19, 2014 07:24
Show Gist options
  • Save oklahomer/4ef23cd19635910d29d6 to your computer and use it in GitHub Desktop.
Save oklahomer/4ef23cd19635910d29d6 to your computer and use it in GitHub Desktop.
pi@raspberrypi ~ $ diff -u /etc/ssh/sshd_config.2014-07-19 /etc/ssh/sshd_config
--- /etc/ssh/sshd_config.2014-07-19 2014-07-19 07:22:27.407144977 +0000
+++ /etc/ssh/sshd_config 2014-07-19 07:22:46.766325295 +0000
@@ -71,7 +71,7 @@
#Banner /etc/issue.net
# Allow client to pass locale environment variables
-AcceptEnv LANG LC_*
+#AcceptEnv LANG LC_*
Subsystem sftp /usr/lib/openssh/sftp-server
@oklahomer
Copy link
Author

My OSX tries to send LC_* locale setting on ssh login and Pi's /etc/ssh/sshd_config allows client to send LC_* settings. The problem is that my OSX sends ja_JP.UTF-8, but locale -a tells me that my Pi doesn't support it so I commented out the following line from /etc/ssh/sshd_config.

AcceptEnv LANG LC_*

Then restart sshd and it's done. Try login with ssh and the warning doesn't show up anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment