systemctl status ssh.service
выдала ошибку (на фото показано), как исправить ошибку? SSH will fail to start if there are syntax errors in the /etc/ssh/sshd configuration file. The command following command will tell you if any directives are incorrect:/usr/sbin/sshd -T
If the configuration test does not return any errors, I would suggest starting sshd in debugging mode, this will provide you with a detailed startup of the service:/usr/sbin/sshd -ddd