This question already has an answer here:

I need to connect my PC to another LAN connected PC and copy some files. How do I do it?


marked as duplicate by Pilot6, karel, Zanna, Eric Carvalho, George Udosen Mar 11 '17 at 19:10

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


First, openssh would need to be installed on both systems. You will need sudo privileges to install.

sudo apt-get install openssh-server

Second, obtain the current IP addresses of both machines.

ifconfig -a

Third, from Machine A, where the files you want to copy are located:

scp /mypathtofiles/filename username@xxx.xxx.xxx.xxx:/mypathtoplacefiles

Substitute, xxx.xxx.xxx.xxx with the target system's IP address.

Note: scp -r may be used to recursively copy directories. It is recommended to review the man scp for additional information.

Not the answer you're looking for? Browse other questions tagged or ask your own question.