setup_ssh() {
	ssh-keygen -A
	sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config
	sed -i 's/#PermitEmptyPasswords no/PermitEmptyPasswords yes/g' /etc/ssh/sshd_config
	sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/g' /etc/ssh/sshd_config
	if ! systemctl restart ssh; then
		systemctl reset-failed ssh
		sleep 10
		systemctl restart ssh
	fi
}
