How can I transfer files between two remote linux server?
I have to transfer files from one remote remote server to another remote server. Both servers run on linux. I have root access to both. How can I copy the files? It would be a great help.
Use -P flag to specify port for both host server
The port assigned by the '-P' parameter works with the 1st server, but the port for the second server remains the same. This
-P flag defines the port for remote to remote file transfer for both servers. But ssh cannot define the port for both.
For the solution of the second problem, just edit ssh_config file at this directory
This will set 1111 as port of both servers. It is not mandatory to use 1111, you are free to choose for yourself. Hope this helps.