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
This is possible using the following command line in linux terminal :
scp -3 user1@ip:path/from/directory/ user2@ip:path/to/directory
a prompt will appear asking for passwords like this:
user1@ip's password: user2@ip's password:
If you give both passwords in order by pressing enter after the first password, it should accept but it wont. Even if you give both passwords again in order but by not pressing enter after the first password, it wont accept again.
You have to give user2's first, then press enter and then type user1's password and press enter. This will work.
I know it doesn't sounds right, but only this will work. This is a bug in scp.