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

This commit is contained in:
Jose Diaz-Gonzalez committed 2024-09-22 23:27:32 -04:00
1 parent 5bb4de58d7
commit 08f68c6634
1 file changed
+5 -3
+5 -3
View File
@@ -92,9 +92,11 @@ endif
cat /usr/lib/systemd/system/ssh.socket cat /usr/lib/systemd/system/ssh.socket
cat /etc/ssh/sshd_config cat /etc/ssh/sshd_config
systemctl daemon-reload systemctl daemon-reload
service ssh restart systemctl reload ssh
service ssh status systemctl restart ssh
journalctl -u ssh -f -n 1000 systemctl status ssh
sleep 2
journalctl -u ssh -n 1000
endif endif
@echo "-----> Installing SSH public key..." @echo "-----> Installing SSH public key..."