scripts/configure-system
2020-03-12 11:31:23 +01:00

6 lines
132 B
Bash
Executable file

#!/bin/sh
sed -i 's/#?PasswordAuthentication.*/PasswordAuthentication no/' /etc/ssh/sshd_config
systemctl restart sshd
apt update