Merge pull request #144 from drudge/patch-1
authorFredrik Fornwall <fredrik@fornwall.net>
Mon, 29 Feb 2016 07:32:20 +0000 (08:32 +0100)
committerFredrik Fornwall <fredrik@fornwall.net>
Mon, 29 Feb 2016 07:32:20 +0000 (08:32 +0100)
Enable SFTP subsystem in openssh package

packages/openssh/build.sh

index a7d5fb2..d3756b7 100755 (executable)
@@ -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