Im using latest CWP version: 0.9.8.1031 on source (CentOS 7.
and destination servers (CentOS 7.9)
I can ssh from dest to source, CSF is disabled on both
SSH and port 2304 opened on both, password and key auth allowed on both.
I have created API access key on source and trying to connect from dest to source following
https://docs.control-webpanel.com/docs/admin-guide/user-accounts/cwp-to-cwp-migration and when I hit "Test and Save" I always get:
"Error API TOKEN
There is a problem with your TOKEN API"
In the logs:
2021-01-10 21:51:27 entre 1
2021-01-10 21:51:28 export SSHPASS='***'; /usr/bin/sshpass -e /usr/bin/ssh -p 223 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet root@185.235.130.135
2021-01-10 21:51:28 true
2021-01-10 21:51:28 entre 2
2021-01-10 21:51:29 /usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/root/.ssh/id_rsa.pub"
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: WARNING: All keys were skipped because they already exist on the remote system.
(if you think this is a mistake, you may want to use -f option)
--> export SSHPASS=**********;/usr/bin/sshpass -e ssh-copy-id "-p 223" root@185.235.130.135 -o StrictHostKeyChecking=no 2>&1
2021-01-10 21:51:30 true
--> /usr/bin/ssh -p 223 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet root@185.235.130.135 test -d /usr/local/cwp/ && echo 'true' || echo 'false' 2>&1
2021-01-10 21:51:30 entre 3
2021-01-10 21:51:30 entre 4
So it connects successfully and drops.
I know the same issue was reported previously by other users and was gone with the latest build but I'm already using the latest build
https://forum.centos-webpanel.com/index.php?topic=9483.msg33171#msg33171Please help to fix this.