Is there a way to send a file in Terminal from one Mac to another? If I have a file on Mac A and I want to send it to Mac B via Terminal on Mac A, how do I do this?
How to send files from one Mac to another via Terminal
data transferNetworkterminal
Related Question
- MacOS – Open a terminal window in another screen on login
- macOS Terminal – Open Terminal Window from Current Location
- Terminal Commands – How to Open PDF from Terminal Using Command Completion
- iPhone – How to Transfer Photos and Videos to Another iPhone
- How to move a folder and contained files in an external volume to another external volume using Terminal
- How to distinguish a terminal window currently connected via SSH
- How to Send Batch Emails from Terminal with Attachments
- IPhone – Copy file to iPhone app from Mac OS terminal
Best Answer
Enable "Remote Login" in the preferences of the target/remote mac. Then use
scp file user@remotehost:
with user being the short name of the remote user. You will be asked for the password of the user on remotehost.
If you want to avoid using passwords, you can set up ssh key pairs. See here for details.