I accidentally posted this to the wrong blog! https://deliverystack.net/2024/10/21/mount-remote-apple-file-system-from-windows-subsystem-for-linux-wsl/ Here it is again.
This blog post provides shortcuts to mount a remote Apple file system under Windows Subsystem for Linux. You can use this technique to access Apple file systems from Windows Subsystem for Linux and Windows itself. You can use Airdrop to copy images from an iPhone through an apple to a Windows machine.
On the Apple:
- Go to Sharing under System Settings.
- Enable File Sharing and click the Information icon.
- Click Options and then enable File Sharing.
- For simplicity over security, enable Allow full disk access for all users.
- Go to Network under System Preferences and note the IP address.
In WSL:
sudo apt update
sudo apt install cifs-utils
sudo mkdir /mnt/fuji
sudo mount -t smb3 '\\<apple ip>\<apple username>' -u username=<apple username> /mnt/fuji # if WordPress wraps this, it belongs on the last line starting "sudo"
cd /mnt/fuji
explorer.exe .
This mounts the home directory of the specified Apple user. You can use the smbclient command to identify other potential mount points.
sudo apt install smbclient
smbclient -L <apple ip> -U <apple username>
Remember to clean up.
sudo umount /mnt/fuji
rmdir /mnt/fuji
I use Ubuntu 20.04 on Windows 10.
To connect from Windows to the Apple machine (mostly for iMessages and admin functions) I use https://www.realvnc.com/en/connect/download/viewer/.
I might look into using SSH from Windows to Apple, likely using https://www.vandyke.com/products/securecrt/).