I want to copy files from a remote machine
remoteA to another
These machines require password authentication.
Steps I tried
I tried this command
$ scp -3 user@remoteA:/path/to/file user@remoteB:/path/to/dest
then double password prompt appeared in a line.
then I entered passwords as follows,
Password: Password: Password: Password: user@remoteB: Permission denied (publickey,keyboard-interactive). user@remoteA: Permission denied (publickey,keyboard-interactive).
but permission denied.
Is there any way to scp between these machines?
- macOS Mojave 10.14.4
ssh -V: OpenSSH_7.9p1, LibreSSL 2.7.3
I already have
.ssh/config files as follows
Host remoteA HostKeyAlias remoteA ControlMaster auto ControlPath ~/.ssh/mux-%r@%h:%p Host remoteB HostKeyAlias remoteB ControlMaster auto ControlPath ~/.ssh/mux-%r@%h:%p