~ubuntu-branches/ubuntu/vivid/libssh2/vivid-proposed

« back to all changes in this revision

Viewing changes to tests/ssh2.sh

  • Committer: Bazaar Package Importer
  • Author(s): Mikhail Gusarov
  • Date: 2010-02-28 13:11:14 UTC
  • mto: (1.1.6 upstream) (2.1.8 sid)
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: james.westby@ubuntu.com-20100228131114-g8d2ps9p1u8i80s3
Tags: upstream-1.2.4
ImportĀ upstreamĀ versionĀ 1.2.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
PUBKEY=$srcdir/etc/user.pub
17
17
export PUBKEY
18
18
 
 
19
if test -n "$DEBUG"; then
 
20
    libssh2_sshd_params="-d -d"
 
21
fi
 
22
 
19
23
chmod go-rwx "$srcdir"/etc/host*
20
24
$SSHD -f /dev/null -h "$srcdir"/etc/host \
21
25
    -o 'Port 4711' \
23
27
    -o "AuthorizedKeysFile $srcdir/etc/user.pub" \
24
28
    -o 'UsePrivilegeSeparation no' \
25
29
    -o 'StrictModes no' \
26
 
    -D &
 
30
    -D \
 
31
    $libssh2_sshd_params &
27
32
sshdpid=$!
28
33
 
29
34
trap "kill ${sshdpid}; echo signal killing sshd; exit 1;" EXIT