Network file sharing
SFTP using “Cyberduck”
“ Cyberduck” lets you copy files from osx or windows (not tested) to your pi using SFTP (SSH File Transfer Protocol). Just make sure SSH is enabled on your pi and connect with login username and password.
Lets you access the file system on the pi from OS X. From console on the Pi run these commands:
$ sudo apt-get install samba samba-common-bin
The next command adds the user “pi” and will prompt you for a password you will need to remember. Use ‘raspberry’ if you want to keep the default as the pi user’s defaults:
$ sudo smbpasswd -a pi $ sudo nano /etc/samba/smb.conf
You should now be editing the configuration file. Paste this into the bottom of it:
[global] workgroup = HOME netbios name = SAMBA server string = Samba Server %v map to guest = Bad User log file = /var/log/samba/log.%m max log size = 50 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 preferred master = No local master = No dns proxy = No security = User
MasterPi will be the name you enter after the ip address in the smb address. I prefer e.g. MasterPi or ClientPi.
[MasterPi] path = / valid users = pi read only = No create mask = 0777 directory mask = 0777
Press CTRL+o to save the file. Press CTRL+x to exit nano. Then restart:
$ sudo /etc/init.d/samba restart
You should now be able to mount your Raspberry Pi via the address (replace 192.168.1.1 with your pi’s ip address): ‘smb://192.168.1.1/MasterPi’