LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-20-2009, 02:40 PM   #1
lostidentity
LQ Newbie
 
Registered: Jan 2009
Location: UK
Posts: 8

Rep: Reputation: 0
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
 
Old 01-20-2009, 02:51 PM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
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.

Last edited by colucix; 01-20-2009 at 02:54 PM.
 
Old 01-20-2009, 03:28 PM   #3
lostidentity
LQ Newbie
 
Registered: Jan 2009
Location: UK
Posts: 8

Original Poster
Rep: Reputation: 0
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.
 
Old 01-20-2009, 03:29 PM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Cheers!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to copy files to another server cj4331 Linux - Newbie 19 03-19-2008 08:28 AM
Copy files from my PC to server anjanesh Linux - Newbie 6 12-30-2005 01:28 AM
how to copy files from my linux server. luqman Red Hat 1 02-24-2005 10:45 AM
Can't copy files from an SCO Unix System V computer to a Linux computer gnppapas Linux - General 2 11-27-2004 02:39 PM
copy files from a server to another..both remote Santosh_d Linux - Networking 1 03-09-2004 08:52 AM


All times are GMT -5. The time now is 08:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration