fix: do not wait forever and use systemctl for interacting with services

This commit is contained in:
Jose Diaz-Gonzalez
2024-09-22 21:07:26 -04:00
parent 5bb4de58d7
commit 08f68c6634

View File

@@ -92,9 +92,11 @@ endif
cat /usr/lib/systemd/system/ssh.socket
cat /etc/ssh/sshd_config
systemctl daemon-reload
service ssh restart
service ssh status
journalctl -u ssh -f -n 1000
systemctl reload ssh
systemctl restart ssh
systemctl status ssh
sleep 2
journalctl -u ssh -n 1000
endif
@echo "-----> Installing SSH public key..."