scp host key verification failed for remote to remote copy [closed] scp host key verification failed for remote to remote copy [closed] linux linux

scp host key verification failed for remote to remote copy [closed]


Check out the option:

-3 : Copies between two remote hosts are transferred through the local host. Without this option the data is copied directly between the two remote hosts. Note that this option disables the progress meter.

This option became available in OpenSSH 5.7


It works. Your problem is the SSH authentication between user@remote and user@remote.If it's the same user on the same server and you are using RSA authentication, you have to append the public key (~/.ssh/id_rsa.pub) into ~/.ssh/authorized_keys of the user itself.

Pay attention to name resolution too. In your case "remote" can be a server name that make sense to your client, but could not make sense from the remote point of view. Use the server IP (if the server is not behind nat) or set a common server name into /etc/hosts on your client and server machine: "remote" should be resolvable from your client and your server machine.


"It is important to note that SCP cannot be used to remotely copy from the source to the destination when operating in password or keyboard-interactive authentication mode, as this would reveal the destination server's authentication credentials to the source."http://en.wikipedia.org/wiki/Secure_copy#Remote_to_remote_mode

Try using key-based authentication to pull off a remote to remote scp.