PaganOS Luna 0.6.0
PL EN DE
🔒 Repository is read-only – file editing is disabled.

recipes/utils/openssh/openssh.service.post-install main

9 lines Raw ← Back
123456789
INFO="\033[1;36m"
NORMAL="\033[0;39m"
if [ ! -f etc/ssh/sshd_config ]; then
	cp etc/ssh/sshd_config{.default,}
	echo "PermitRootLogin no" >> etc/ssh/sshd_config
	printf "${INFO} /etc/ssh/sshd_config created ${NORMAL}\n"
	printf "${INFO} Double check /etc/ssh/sshd_config and adapted to your needs ${NORMAL}\n"
fi
systemctl enable sshd