Instead of using SMB file sharing, use scp
via Terminal instead. SMB file sharing has been a little flaky on recent versions of macOS where as ssh
and scp
are rock solid. However, it will require a little bit of Terminal cli-fu.
Pre-Reqs
You’ll need the following prior to making the connection and copying file(s):
- Enable Remote Login in Settings/Preferences.
- The IP address of the Mac you want to connect to (I assume the Intel Mac).
- Verified that the remote machine can be reached. (Test with
ping ipaddress
)
- The path to the file/folder you want to copy (save to your clipboard if you wish)
First Step: Make sure you can log in
Issue the following command where user = the username of a registered user on the machine you’re connecting to and ipaddress = the IP of that same machine:
ssh user@ipaddress
You should get a password prompt. Enter it and if successful, you’re connected to the other machine. Type exit
to disconnect.
Second step: Use scp
to copy you file(s).
Just like the command above, you’re going to connect to your Mac but this time with the file/folder path you got from the pre-reqs:
scp user@ipaddress:path/to/files/foo.bar destination/path
Example: copying all PDF files in remote Downloads to local Downloads:
scp user@ipaddress:Downloads/*.pdf ~/Downloads/
Again, you’ll get a password prompt and if correct and your path is valid, you’ll see a transfer status message letting you know how much has copied and the elapsed time. When it’s finished, it will automatically disconnect.
Extras
You can streamline the ssh
/scp
login process with ssh keys; you won’t have to enter a password See: How to SSH in one line for full instructions
If you use iTerm2 instead of Terminal, you can configure a ⌘ Command-Click action to scp
the selected file. See: iTerm2 Symantec History
If you’re having difficulty connecting your two computers over Thunderbolt, Apple has an excellent Support Document entitled Use IP over Thunderbolt to connect Mac Computers. You can try and setup DHCP/DNS, but for this, I recommend manual IP settings. Just make sure you’re on a different subnet than your regular network. For instance, your regular network is 192.168.1.X
, then use 10.0.0.X
.