From 1f2f1df33ce3a9f7c2fa8ff8f01d1206269ad196 Mon Sep 17 00:00:00 2001 From: Lauri Tirkkonen Date: Mon, 2 Jul 2018 17:20:38 +0300 Subject: [PATCH] openssh: SendEnv LANG by default many distributions use "AcceptEnv LANG LC_*" by default for sshd. this fixes UTF-8 output from such servers that do not happen to set LANG or LC_CTYPE to UTF-8 by default server-side (termux env already sets LANG=en_US.UTF-8) --- packages/openssh/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/openssh/build.sh b/packages/openssh/build.sh index 1e7cd4a14..99d2f51b5 100755 --- a/packages/openssh/build.sh +++ b/packages/openssh/build.sh @@ -62,7 +62,7 @@ termux_step_post_make_install () { # "PrintMotd no" is due to our login program already showing it. # OpenSSH 7.0 disabled ssh-dss by default, keep it for a while in Termux: echo -e "PrintMotd no\nPasswordAuthentication no\nPubkeyAcceptedKeyTypes +ssh-dss\nSubsystem sftp $TERMUX_PREFIX/libexec/sftp-server" > $TERMUX_PREFIX/etc/ssh/sshd_config - echo "PubkeyAcceptedKeyTypes +ssh-dss" > $TERMUX_PREFIX/etc/ssh/ssh_config + printf "PubkeyAcceptedKeyTypes +ssh-dss\nSendEnv LANG\n" > $TERMUX_PREFIX/etc/ssh/ssh_config cp $TERMUX_PKG_BUILDER_DIR/source-ssh-agent.sh $TERMUX_PREFIX/bin/source-ssh-agent cp $TERMUX_PKG_BUILDER_DIR/ssh-with-agent.sh $TERMUX_PREFIX/bin/ssha