I was having some trouble today copying a file (1.5GB .iso) from a notebook to a file server.
The notebook I was using was running Linux Ubuntu.
The server FreeBSD.
I was trying to copy this file using SMB/CIFS via Nautilus.
I tried several times, it failed each time.
Then I thought, what are you doing… drop to the command line.
scp to the rescue
The command I used:
From the directory on my local machine I was copying the file from
scp -P <MyPortNumberHere> MyFile.iso <MyUserName>@<MyServer>:/Path/To/Where/I/Want/MyFile/ToGo/MyFile.iso
This also took about half the time to copy that SMB took, and SMB didn’t even complete. Not to mention the transfer is secure (SSH)
Some additional resources
Also don’t forget to check the man page out😉