2

I have a Ubuntu PC and I want to send data to a Mac via Wifi. The best solution would be to have a sharing directory regardless from the Wifi I'm connected to. I didn't find any solution for the moment, can someone help me?

Thank for all.

2

2 Answers 2

4

I am assuming you are located in the same local network with both hosts

There are several ways to do that.

1. SSH & SCP

As both systems do know ssh & scp you could easily transfer files via scp.

As far as i know you have to enable SSH/SCP on the Mac via:

System PreferencesSharing → select Remote Login checkbox.

Usage examples:

scp /path/to/local/file remoteusername@remotehost:

or for an entire folder

scp -r /path/to/local/folder remoteusername@remotehost:

in case you want to define the target position as well:

scp -r /path/to/local/folder remoteusername@remotehost:/path/on/targetsystem

Some additional help for scp can be found here.

2. Shared Mac Folder

You could enable a Folder sharing in System PreferencesSharing of the Mac.

enter image description here

Macs usually share via AFP and optional SMB/CIFS. You could then mount that share on the ubuntu side in Nautilus (or other File Manager) or permanently via /etc/fstab.

3. Syncing folders

Setup Dropbox/Owncloud or similar on both hosts and enjoy syncing files with all pro and cons.

You could as well use rsync to sync a folder between those 2 machines.

1
1

A lazy FLOSS alternative to Dropbox/Owncloud (it is much easier to setup than owncloud) is syncthing. I use it to sync android and multiple Linux boxes (Ubuntu, openSUSE and Raspbian), but it also works on MacOS.

Just always be sure to use the same version on all clients as the protocol changes over main versions.

Of course using SSH & SCP or SFTP is probably closer to the question you asked.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .