Control Web Panel
WebPanel => Migration from other control panels => Topic started by: ahmetsahin on April 18, 2025, 02:24:08 PM
-
Hi!,
i use
source: centos7
destination: almalinux 9.5
both of two server set:
firewall disable
open port: 22 and 2304
PermitRootLogin yes
restart ssh and firewall service
There is no problem when transferring from almalinux to centos7. This is working.
when transferring from centos7 to almalinux.
i am facing "Connection not reached"
how to resolve?
error log:
2025-04-18 14:15:28 export SSHPASS=************; /usr/bin/sshpass -e /usr/bin/ssh -p22 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet root@xx.xx.xx.xx
2025-04-18 14:15:28 test -d /usr/local/cwp/ && echo 'true' || echo 'false'
2025-04-18 14:15:29 true
2025-04-18 14:15:29 /usr/bin/ssh-copy-id: ERROR: Too many arguments. Expecting a target hostname, got:
Usage: /usr/bin/ssh-copy-id [-h|-?|-f|-n|-s] [-i [identity_file]] [-p port] [-F alternative ssh_config file] [[-o <ssh -o options>] ...] [user@]hostname
-f: force mode -- copy keys without trying to check if they are already installed
-n: dry run -- no keys are actually copied
-s: use sftp -- use sftp instead of executing remote-commands. Can be useful if the remote only allows sftp
-h|-?: print this help
2025-04-18 14:15:29 export SSHPASS=**********;/usr/bin/sshpass -e ssh-copy-id root@xx.xx.xx.xx -o StrictHostKeyChecking=no 2>&1
2025-04-18 14:15:29 /usr/bin/ssh -p 22 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet root@x.x.x.x test -d /usr/local/cwp/ && echo 'true' || echo 'false' 2>&1
2025-04-18 14:15:29 false
-
You will have to use AlmaLinux 8 for a CWP -> CWP Migration. AlmaLinux 9 support is still in beta and this is one of the thornier issues to work through (lack of compatible encryption to support the transfer).
-
I have AL 8.10 in both servers. Getting error "Connection not reached"
What should be done?
-
On the CSF firewall on both servers, open ports 22 and 2304
In sshd_config: PermitRootLogin yes
Temporarily disable the CSF firewall on both servers if needed.
-
On the CSF firewall on both servers, open ports 22 and 2304
In sshd_config: PermitRootLogin yes
Temporarily disable the CSF firewall on both servers if needed.
Thanks a ton
Adding
PermitRootLogin yes
in
/etc/ssh/ssh_config
did the trick.