fix: do not wait forever and use systemctl for interacting with services
This commit is contained in:
1 file changed
+5
-3
@@ -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..."
|
||||||
|
|||||||
Reference in new issue
Block a user