+ sshd_disable_password_auth $lxc
+ # post install hook
+ [ -n "$NAT_MODE" ] && post_install_natip $lxc $personality || post_install_myplc $lxc $personality
+ # start the VM unless specified otherwise
+ if [ -n "$START_VM" ] ; then
+ echo Starting guest $lxc
+ virsh -c lxc:/// start $lxc
+ if [ -n "$NAT_MODE" ] ; then
+ wait_for_ssh $lxc
+ else
+ wait_for_ssh $lxc $GUEST_IP
+ fi
+ fi
+}
+
+# just in case, let's stay on the safe side
+function sshd_disable_password_auth () {
+ lxc=$1; shift
+ lxc_root=$(lxcroot $lxc)
+ sed --in-place=.password -e 's,^#\?PasswordAuthentication.*,PasswordAuthentication no,' \
+ $lxc_root/etc/ssh/sshd_config