This can happen when an SSH configuration change blocks your connection or prevents the SSH service from accepting your login credentials.
Before reinstalling your VPS, try to identify the exact problem.
- Check the SSH port: If you changed the default port, make sure your SSH client is connecting to the correct one.
- Verify firewall rules: Confirm that the configured SSH port is allowed through both the server firewall and any provider-level firewall.
- Check SSH key permissions: Incorrect permissions on your private key or the server's
authorized_keys file can prevent authentication.
- Review SSH configuration: Incorrect settings in
/etc/ssh/sshd_config may prevent successful connections.
- Use your provider's console: If SSH is completely inaccessible, use the VPS web console or recovery console to inspect the configuration.
Be careful when changing SSH settings on a remote server. Keep an existing working session open until you've confirmed that the new configuration allows another successful login.