--- a/scripts/config/1170-openssh-server
+++ b/scripts/config/1170-openssh-server
@@ -35,6 +35,8 @@
 		fi
 	done
 
+	sed -i -e 's|#\(PasswordAuthentication\) yes|\1 no|' /etc/ssh/sshd_config
+
 	case "${_SSH}" in
 		true)
 			# Creating state file
