LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   copy files from server to computer (https://www.linuxquestions.org/questions/linux-newbie-8/copy-files-from-server-to-computer-698651/)

lostidentity 01-20-2009 01:40 PM

copy files from server to computer
 
Hi,

I want to copy some files from a remote server (running Unix) onto my computer (running linux). I can ssh to the server. But the problem is I can't scp from the server to my computer (my university firewall blocks it). Also I can't ssh from the server to my computer.

Is there any other way I could copy the files from the server to my computer?

Thanks

colucix 01-20-2009 01:51 PM

If you can ssh to the remote (Unix) server, maybe you can use scp (have you tried?). Just invert the arguments in the command line, that is from your local server do:
Code:

[lostidentity@linux ~]$ scp -p user@host:/path/to/some/file ./path/to/local/dir
Indeed, usually a firewall blocks the NEW connections, not the ESTABLISHED ones (not always true, anyway). So if your local host start the connection and it is not blocked, most likely you will be able to use the scp command in the direction shown in my example.

If this does not work, I think the only way is to put the files onto a free file hosting service (one accessible from the ftp command line) and download them from there onto your local machine.

lostidentity 01-20-2009 02:28 PM

Cheers mate. It worked!

Earlier I typed in the scp commands at the server terminal and not on my local machine. I understand what's happening now. Cheers again.

colucix 01-20-2009 02:29 PM

Cheers! :)


All times are GMT -5. The time now is 11:56 AM.