+ if grep "PasswordAuthentication yes" /etc/ssh/sshd_config; then
+ echo "# FAILED. Please check /etc/ssh/sshd_config manually. #"
+ else
+ echo "# Fixed... HOWEVER, you'll need to manually restart ssh: #"
+ echo "# #"
+ echo "# sudo systemctl restart ssh #"
+ echo "# #"
+ echo "# (you may want to make sure you can login as the new user first) #"
+ fi
+ echo "# #"
+ echo "######################################################################"
+ fi
+
+ echo "Created user '${my_new_user}' as sudoer with a random password."
+ echo "(set a new password with 'password ${my_new_user}')"