• 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 Plesk Migrator Authorization SSH key from cPanel

tanasis

Basic Pleskian
Hello,
I did this Authentication by SSH (Linux)

[root@server ~]# ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa): 512key
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in 512key.
Your public key has been saved in 512key.pub.
The key fingerprint is:
SHA256:q18N..................Cw4 [email protected]
The key's randomart image is:
+---[RSA 3072]----+
| |
....................
| .o+==O== |
+----[SHA256]-----+

[root@server ~]# ssh-copy-id [email protected]
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/root/.ssh/id_rsa.pub"
The authenticity of host '1xx.2xx.2xx.1x (1xx.2xx.2xx.1x)' can't be established.
ECDSA key fingerprint is SHA256:vR+R...........................................++OYo.

What am I doing wrong ?
 
Does the server to where you want to write the key allow root access through SSH (PermitRootLogin = yes)?
 
If that was the cause, I suggest to limit root login to the target server only, e.g. set the general PermitRootLogin variable to "no", but add two lines to the end of the file:
Code:
Match Address <IP address of the target>
PermitRootLogin yes
This way only the target will be allowed to login by root, but no other ip.
 
Back
Top