Enable FTP or SMB sharing the devices by going into System Preferences->Sharing and checking off the box you want. After that, each machine will be available on your LAN under 'Shared' in the Finder. If you want to connect via Terminal, you can use the SSH protocol.