I'm trying to copy a file from one remote server to another remote server from my local machine. Here's what I'm trying to do
localA $ scp userB@remoteB:/path/to/file userC@remoteC:/path
The problem is that I need to pass two passwords for both userB and userC on the remote machines.
According to Garron the above should work, but I got permission denied.
Permission denied (gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive).
lost connection
Any suggestions?