Βασική αρχή
Και τα δύο OS μιλούν **TCP/IP**. Το Mac (macOS) είναι BSD-based, το Linux είναι GNU/Linux. Οι υπηρεσίες δίκτυου είναι ίδιες — διαφέρει η διαχείριση GUI vs CLI.
1. File Sharing: SMB (πιο εύκολο, native και στα δύο)
macOS → Server (share folder)
- System Settings → General → Sharing → **File Sharing: On**.
- Options → ☑ **Share files and folders using SMB**.
- Προσθέστε φάκελο → Users → Read/Write.
- Σημειώστε τη διεύθυνση:
smb:///ShareName.
Linux → Client (mount)
# /etc/fstab
//192.168.1.50/Shared /mnt/macshare cifs credentials=/root/.smbmac,vers=3.0,uid=1000,gid=1000 0 0
# /root/.smbmac (chmod 600)
username=macuser
password=macpass
GUI: Files (Nautilus/Dolphin/Thunar) → Connect to Server → smb://IP/Share.
Linux → Server, macOS → Client
- Linux:
sudo apt install samba → /etc/samba/smb.conf → systemctl enable --now smbd nmbd.
- macOS: Finder → ⌘K →
smb://linux-ip/share → connect με Linux credentials.
2. SSH / SFTP (ασφαλές, χωρίς shares)
- macOS: System Settings → General → Sharing → **Remote Login: On** (ενεργοποιεί sshd).
- Linux:
sudo systemctl enable --now ssh.
- Αυθεντικοποίηση: **Ed25519 keys** (γенеράτε με
ssh-keygen -t ed25519, copy με ssh-copy-id).
- Χρήση:
ssh user@ip, scp file user@ip:/path, rsync -avz /src user@ip:/dst.
- GUI: Transmit, Cyberduck, FileZilla, hoặc Finder → ⌘K →
sftp://user@ip.
3. NFS (γρήγορο, για trusted LAN, Unix permissions)
- Linux server:
/etc/exports → /srv/data 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash) → exportfs -ra.
- macOS client:
sudo mount -t nfs -o rw,vers=3 linux-ip:/srv/data /mnt/nfs (macOS NFS client είναι βαρύς — προτιμήστε SMB/SSH).
4. Σύγχρονες εναλλακτικές (συνεχής sync, offline-first)
- Syncthing (open source, P2P, TLS, NAT traversal, device IDs): Εγκαταστήστε και στα δύο → αλληλεπίδραση folder IDs → automatic sync. Δεν χρειάζεται server/IP σταθερό.
- Tailscale / ZeroTier: Mesh VPN (WireGuard) → εξαφανίζει NAT/firewall προβλήματα. Μετά το Tailscale, SMB/SSH/NFS δουλεύουν σαν να είναι τοπικά.
- Nextcloud / Seafile: Self-hosted cloud με clients Mac/Linux/Windows/Mobile.
Troubleshooting checklist
- Ping / IP reachable?
- Firewall: macOS (pf/Application Firewall) → allow SMB (445), SSH (22), NFS (2049,111). Linux: ufw/firewalld/nftables.
- Workgroup name: Default
WORKGROUP — αλλάξτε αν χρειάζεται στο smb.conf / macOS Sharing.
- Time sync (NTP/chrony) — κρίσιμο για Kerberos/SMB signing.
- Encoding: UTF-8 πανταχού (SMB3, NFSv4, SSH).
Για ad-hoc transfers: **AirDrop** (Mac↔Mac/iOS) ή **KDE Connect / GSConnect** (Linux↔Android/Mac). Για production shares: **SMB3 + Kerberos** ή **Syncthing/Tailscale**.