I'm trying to make a site to site transfer with the following configuration. I have an old server (server-A), the new server (server-B), and my workstation (wks), on which I'd like to launch the transfer.
SSH key exchange has been done between wks and server-A/B.
Server-A and server-B have no keys exchanged.
I tried the following command from my workstation
scp -r root@server-A:/path/to/source/ root@server-B:/destination/path
but it doesn't work. As far as I understand, server-A tries to connect to server-B, and as there's no key exchange done, it fails.
Any idea how to make the file transfer work for this particular configuration?