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.

I'm using a cloud server which runs ubuntu, I can send files from my computer to the server using scp, but the opposite side doesnt work, I know it could be due to closed ports or something else. anyhow, what options do I have? I need one file, generated on the server to be on my home computer.

I'm using SSH for the connections to the server's shell.

Thanks,

share|improve this question

migrated from stackoverflow.com Sep 29 '10 at 11:29

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

4 Answers 4

up vote 0 down vote accepted

You are starting scp on your local host [2] and not on the remote host 1, are you? Only with 1 you could run into blocked ports on your home computer.

1: remoteuser@remotecomputer:~$ scp /path/to/file/foobar.txt homeuser@homecomputer:
2: homeuser@homecomputer:~$ scp remoteuser@remotehost:/path/to/file/foobar.txt .

For your convenience you can try SSHFS

share|improve this answer

I would suggest you use SFTP, which comes with Ubuntu's ssh package and works in either direction. You can't scp from the remote host to your local PC unless you're running sshd (the ssh server) locally.

share|improve this answer

You can connect with a grafical interface as WinSCP ( http://winscp.net ), that runs over SSH. You have to install it on your local machine, and SSH server on your server (i guess you have already done).

share|improve this answer

Have you tried rsync over ssh?

While tar over ssh is ideal for making remote copies of parts of a filesystem, rsync is even better suited for keeping the filesystem in sync between two machines. Typically, tar is used for the initial copy, and rsync is used to pick up whatever has changed since the last copy. This is because tar tends to be faster than rsync when none of the destination files exist, but rsync is much faster than tar when there are only a few differences between the two filesystems.

share|improve this answer

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.