From 88a11b0e8ad1e5aa0c7cf6cdcb9669784c0e6091 Mon Sep 17 00:00:00 2001 From: Nicholas Penree Date: Sat, 20 Feb 2016 22:19:28 -0500 Subject: [PATCH] Enable SFTP subsystem in openssh package --- 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 a7d5fb215..d3756b79f 100755 --- a/packages/openssh/build.sh +++ b/packages/openssh/build.sh @@ -21,7 +21,7 @@ termux_step_pre_make () { termux_step_post_make_install () { # OpenSSH 7.0 disabled ssh-dss by default, keep it for a while in Termux: - echo -e "UsePrivilegeSeparation no\nPubkeyAcceptedKeyTypes +ssh-dss" > $TERMUX_PREFIX/etc/ssh/sshd_config + echo -e "UsePrivilegeSeparation 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 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