outgoing connections.
adt_fw_hook <config> with _config replaced with _fwhook
- or none of <config> doesn't end in _config
+ or none if <config> doesn't end in _config
bash fragment to source during firewall setup
+adt_sshauthkeys_hook <config> with _config replaced with _sshauthkeys
+ or none if <config> doesn't end in _config
+ list of authorized keys to append to testbed's
+ /root/.ssh/authorized_keys.
+
---------- Items that are likely to need attention ----------
adt_kernel Xen kernel matching /boot/xen*`uname -r`
echo xennet >>$dest/etc/modules
if ! test -f "${adt_ssh_pubkey}"; then
- if [ "x${adt_ssh_pubkey}" != "x${adt_ssh_privkey}.priv" ]; then
+ if [ "x${adt_ssh_pubkey}" != "x${adt_ssh_privkey}.pub" ]; then
fail "cannot generate keypair automatically because adt_ssh_privkey \`$adt_ssh_privkey' and adt_ssh_pubkey \`$adt_ssh_pubkey' do not match up in the way required by ssh-keygen (<pubkey> must be <privkey>.pub>"
fi
if test -f "${adt_ssh_privkey}"; then
mkdir -m 02700 -p $dest/root/.ssh
cp -- "${adt_ssh_pubkey}" $dest/root/.ssh/authorized_keys
+if [ "x$adt_sshauthkeys_hook" != x ]; then
+ cat -- "$adt_sshauthkeys_hook" >>$dest/root/.ssh/authorized_keys
+fi
cat <<END >$dest/etc/init.d/xenethtoolk
#!/bin/sh
search_hook fw firewall fwhook
search_hook setup setup setuphook
+search_hook sshauthkeys "ssh auth keys" sshauthkeys
boolean_config () {
eval '