• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue SSH wont start, error on starting

Gene Steinberg

Regular Pleskian
I have a VPS with the latest Plesk and AlmaLinux 9.3.

All of a sudden SSH doesn't work. It restarts with an error and a telnet to the server shows it can't reach port 22 (even though it's activated).

I used the host's console to login and ran a few things (see screen shot).

I assume removing and reinstalling SSH can help, but I am not finding clear instructions on doing that.

Can someone help?

Screen Shot 2024-01-26 at 7.26.48 AM.png
 
Did you follow the advice mentioned in the error and ran systemctl status sshd.service and journalctl -xeu sshd.service to get more details on the error?
 
I fond directions for removing Open SSH in AlmaLinux and did that, reinstalled. and was able to restart OpenSSH.

But Plesk opens with a 502 Gateway error. Sites work, but not SSH for logins. I can connect via host's remote console, though. A restart requires restarting MariaDB, but sites work.

So any directions to get past this are welcome.
 
Removing OpenSSH is not such a good idea. It would have been better to simply edit the faulty configuration file. Removing a service might result in other services that depend on it to no longer work.

Could you please explain what you mean by the 502 Gateway error? Do you mean that opening the graphical user interface shows that error so that you cannot see the login page, but see a 502 immediately? In that case you can try to toggle the psa service service psa stop && service psa start or you can try to toggle service sw-cp-server restart && service sw-engine restart. If this does not work, please try advice from this thread: Issue - sw-engine won't start
 
Back
Top