debug: why ssh isnt running

This commit is contained in:
Jose Diaz-Gonzalez committed 2024-09-22 23:38:28 -04:00
1 parent 8f18c3d581
commit 4c634b6fd0
1 file changed
+3 -1
+3 -1
View File
@@ -91,13 +91,15 @@ ifeq ($(shell grep 22333 /usr/lib/systemd/system/ssh.socket),)
endif 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
service ssh status
systemctl daemon-reload systemctl daemon-reload
systemctl list-unit-files | sort systemctl list-unit-files | sort
service ssh status
journalctl -u ssh -n 1000 journalctl -u ssh -n 1000
systemctl restart ssh.socket systemctl restart ssh.socket
sleep 2
journalctl -u ssh -n 1000 journalctl -u ssh -n 1000
service ssh status service ssh status
sleep 2
endif endif
@echo "-----> Installing SSH public key..." @echo "-----> Installing SSH public key..."