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