summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbold <bold@cryptoguru.com>2019-12-21 08:40:46 +0100
committerWez Furlong <wez@wezfurlong.org>2019-12-21 08:01:48 -0800
commitdcedc9056d2a0681027b795393fca111b5cd03aa (patch)
treeb6118b728433735b914b1a9ad6f1697ef2bd6034
parent311e9c85f7002c19b6eac885051969e3136210e0 (diff)
downloadssh2-rs-dcedc9056d2a0681027b795393fca111b5cd03aa.zip
use internal-sftp in sshd for tests
-rwxr-xr-xtests/run_integration_tests.sh8
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/run_integration_tests.sh b/tests/run_integration_tests.sh
index 02d132d..521c30d 100755
--- a/tests/run_integration_tests.sh
+++ b/tests/run_integration_tests.sh
@@ -31,17 +31,11 @@ cp $SSHDIR/id_rsa.pub $SSHDIR/authorized_keys
ssh-keygen -f $SSHDIR/ssh_host_rsa_key -N '' -t rsa
-for p in /usr/lib/openssh/sftp-server /usr/libexec/sftp-server /usr/libexec/openssh/sftp-server ; do
- if test -x $p ; then
- SFTP=$p
- fi
-done
-
cat > $SSHDIR/sshd_config <<-EOT
AuthorizedKeysFile=$SSHDIR/authorized_keys
HostKey=$SSHDIR/ssh_host_rsa_key
PidFile=$SSHDIR/sshd.pid
-Subsystem sftp $SFTP
+Subsystem sftp internal-sftp
UsePAM yes
X11Forwarding yes
UsePrivilegeSeparation no