+# 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
+}
+