• 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.

Issue Cannot connect to Plesk view SSH

lukaslaudrain

New Pleskian
I was working on a Plesk Obsidian server via SSH and I modified the ssh config and restarted the sshd service. However, the SSH config was invalid and now the service is down and I cannot ssh into the server. I have tried to access it from the panel but it didn't work. Does someone knows how I can get my access back?
 
Some server providers offer remote console access (e.g., KVM). If available, you can use it to access the server and fix the SSH configuration.

Hopefully you can login that way and revert the changes to /etc/ssh/sshd_config.

Next time before restarting sshd service test/check the new configuration for syntax errors with #sudo sshd -t

Make sure to correct any errors reported before restarting the SSH service to avoid locking yourself out of the server.
 
Back
Top