diff options
author | bold <bold@cryptoguru.com> | 2019-12-21 08:40:46 +0100 |
---|---|---|
committer | Wez Furlong <wez@wezfurlong.org> | 2019-12-21 08:01:48 -0800 |
commit | dcedc9056d2a0681027b795393fca111b5cd03aa (patch) | |
tree | b6118b728433735b914b1a9ad6f1697ef2bd6034 /tests | |
parent | 311e9c85f7002c19b6eac885051969e3136210e0 (diff) | |
download | ssh2-rs-dcedc9056d2a0681027b795393fca111b5cd03aa.zip |
use internal-sftp in sshd for tests
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/run_integration_tests.sh | 8 |
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 |