SSH – How to Copy Files Between Two Computers

connectionfilessshtransfer

Situation: I have 2 computers: Pc_A and Pc_B. I am also using a SSH connection that goes from A to B.

My problem: I have a folder saved on the desktop of Pc_A and I need to copy it to the desktop of Pc_B via terminal. The thing is that once I open the terminal on Pc_A and I connect to Pc_B I'm no longer capable of transferring data from one computer to another…

Question: does anyone have the idea of what should be done in such case?

Best Answer

You could use scp:

When you're on PCB:

scp -r your_user_name@ip_address_of_PCA:/path/to/remote/directory /path/to/local/directory
Related Question