I sshed to a remote machine and want to copy some files from there to my local machine. Both are running linux. My local machine is behind a firewall, so I can't do "scp file_on_remote user@localmachine". I know I can do "scp user@remotemachine:/directory/file ./", but I need to wander around on the remote server to pick some files to download to local machine, so this way doesn't seem too appealing to me.


Silly question but can you run a GUI on the client machine, like Filezilla?

Assume you can't and are unhappy with RSYNC or SSH or RSYNC over SSH, then you might want to look into SSHFS. This will allow your to mount a remote directory over SSH to you local box. You can browse and use normal cp or mv to copy or move files around.

  • I should have added a link for you, sorry fuse.sourceforge.net/sshfs.html – Eric Van Joshnon Mar 13 '11 at 7:19
  • Thanks. Yeah, this is what I finally chose for the directories I may frequently browse. For some random files, a ssh reverse tunneling will do. – leonbnu Mar 13 '11 at 19:23
  • after a few days' trial, sshfs drops the connection quite often and then gives me a busy device error when I try to unmount it. – leonbnu Mar 18 '11 at 18:27

Try sftp. It works over SSH channel, and lets you browse the remote files.


Use rsync: http://rsync.samba.org/

  • 2
    While rsync is a good answer. It is nice if you extrapolate a little on your answer as well. Why is rsync better then the op's idea? – Unfundednut Mar 13 '11 at 5:40
  • RSync requires a significant amount of study of its command-line switches to use it effectively in each environment. It is a common solution that works well for file/directory replication as it was designed for this purpose. – Randolf Richardson Mar 14 '11 at 1:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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