summaryrefslogtreecommitdiff
path: root/tests/basic
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2008-10-25 14:17:34 -0400
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2008-10-25 14:17:34 -0400
commit5f29ad789dda115b477d53fbedd3a71b64962e27 (patch)
treef2f57e014a1b923136a3422ca5a1f230c02ac5b0 /tests/basic
parent14fd73037386e107dd99bc5a42102e229619e53b (diff)
test now has better sshd configuration.
Diffstat (limited to 'tests/basic')
-rwxr-xr-xtests/basic5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/basic b/tests/basic
index b9ae8f1..e3cc42e 100755
--- a/tests/basic
+++ b/tests/basic
@@ -81,9 +81,12 @@ gpgadmin --sign-key "$HOSTKEYID"
echo "-- adding admin as certifier..."
monkeysphere-server add-identity-certifier "$TESTDIR"/home/admin/.gnupg/pubkey.gpg
+# initialize base sshd_config
+cp etc/ssh/sshd_config "$TEMPDIR"/sshd_config
# write the sshd_config
-cat <<EOF > "$TEMPDIR"/sshd_config
+cat <<EOF >> "$TEMPDIR"/sshd_config
HostKey ${MONKEYSPHERE_SYSDATADIR}/ssh_host_rsa_key
+AuthorizedKeysFile ${MONKEYSPHERE_SYSDATADIR}/authorized_keys/%u
EOF
# launch sshd with the new host key.