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

Resolved Plesk Migrator Authorization SSH key from cPanel

tanasis

Regular 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