Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Using my PC I just used Tunnelier, it took care of all the dirty work for me. Now that I have got a MacBook Pro (for design purposes) I am at a loss of how to send my files to the Linux server.

Any help would be appreciated.

share|improve this question

migrated from stackoverflow.com Oct 23 '11 at 5:43

This question came from our site for professional and enthusiast programmers.

add comment

5 Answers

up vote 4 down vote accepted

rsync is the business.

rsync -chavz --partial --progress --stats source_files remotehost.domain:target_dir

Where:

--checksum             -c              -- skip based on checksums, not mod-time & size                                                                                                                   
--human-readable       -h              -- output numbers in a human-readable format                                                                                                                      
--archive              -a              -- archive mode; same as -rlptgoD (no -H)                                                                                                                         
--verbose              -v              -- increase verbosity                                                                                                                                             
--compress             -z              -- compress file data during the transfer                                                                                                                         
--partial                              -- keep partially transferred files                                                                                                                               
--progress                             -- show progress during transfer                                                                                                                                  
--stats                                -- give some file-transfer stats                                                                                                                                  

The great thing about rsync is that it only copies what it needs to. So if you run the command a second time, it should copy nothing at all (unless one of the files has changed on either end in the meantime). This is also useful if your transfer gets interrupted somehow. The output of the command above will give you some information on by how much it has sped up your file transfer.

share|improve this answer
1  
Thanks a ton, I had no idea this thing existed. This is exactly what I was looking for, easier than copying dozens of files and keeping track of them in my head. –  Cayetano Gonçalves Oct 23 '11 at 5:58
    
@RVward: You're very welcome. Enjoy. –  Johnsyweb Oct 23 '11 at 5:58
add comment
scp pathToFileOnMBP username@linuxHost:pathToFileOnLinux

useful options:

-r for recursive copy

-P portnumber if you want to use a port other than 22 (standard ssh)

share|improve this answer
add comment

Open Terminal ( press Command key + Space, type "Terminal", press Enter )

In the Terminal type:

scp -r path_to_your_files user@linuxserver:~

It will ask for the user's (your) password and will copy "your_files" to the user's home directory (~).

In case you need to copy it to another directory on the Linux server:

scp -r path_to_your_files user@linuxserver:path_to_another_directory

Make sure "user" has write permissions to "path_to_another_directory"

share|improve this answer
add comment

Here is the man page (instructions manual) for using SCP

http://linux.die.net/man/1/scp

Make sure you have your ssh keys set up in your home directory (~/.ssh) with the correct permissions (chmod 600)

Then you can type scp PATH_TO_FILE username@server:PATH_TO_DESTINATION

Example: scp abc.txt myuser@linuxserver:~/ will copy the abc.txt file and copy it to the home directory on the linux server.

If everything is working properly, you should see a progress bar and it will let you know when it is complete.

share|improve this answer
add comment

There are lots of ways. Just to name a few:

  • Terminal has Shell -> New Remote Connection, where you can choose an sftp connection. This opens an interactive command line sftp-client.
  • Straight scp as others have mentioned

If you are more GUI-inclined:

If you like paying:

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.