• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved SSH root public key stopped working

jimlongo56

Basic Pleskian
Since I last logged in to my Plesk Onyx 17.8 via ssh my key has stopped working (probably a month or more ago, this is a dev server).

This is a key from my local computer.
I want to SSH to my Plesk server as root.
The public key is uploaded to the plesk server in
Code:
~/.ssh/authorized_keys

Permissions seem correct
Code:
[root@li505-108 ~]# ls -la ~/.ssh/authorized_keys
-rw------- 1 root root 411 Sep 24 13:53 /root/.ssh/authorized_keys

from my local machine this times out . . .
Code:
ssh [email protected] -p 22022 -i ~/.ssh/mini_rsa

This key works currently on many other servers, so it's not that, and my local .ssh/config is normally setup to use this port and key for this server.
 
Solved: Port was blocked.

Changing /etc/ssh/sshd_config back to Port 22 let me in via the key.

Re-open the port in the Firewall.
Code:
iptables -I INPUT -p tcp --dport 22022 -m state --state NEW -j ACCEPT

Change sshd_config back to Port 22022, and it worked.
 
Back
Top