Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-27-2010, 01:34 PM   #1
Registered: Dec 2005
Posts: 76

Rep: Reputation: 15
scp to full files off a remote server.

I have to ssh through to a second machine due to security but when in the server machine, I do not know how to scp files off this machine to my local machine. I usually do all file transfer from the local machine - so how to do it this way around?

I have tried:

scp -r Papers

Where I have inserted my IP. How should I make this work? I am getting the message "No route to host". Could the port be wrong? I think its 22.

Old 03-27-2010, 01:41 PM   #2
Mr. ameya sathe
Registered: Jul 2007
Distribution: RedHat Enterprise 5 Server Edition; Ubuntu 8.04 ; RHCE Certificate number: 805008741034103
Posts: 78
Blog Entries: 8

Rep: Reputation: Disabled
rsync -avz Remote_mc_IP_addressath to the directory ur_local_directory.

For eg:
rsync -avz Papers
Old 03-27-2010, 02:09 PM   #3
Registered: Dec 2005
Posts: 76

Original Poster
Rep: Reputation: 15
Thanks. But I'm getting the same problem as before: "No route to host". Any ideas?
Old 03-27-2010, 02:24 PM   #4
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,150

Rep: Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887
does rsync work over ssh ? if not, then for security reasons, i would stick to scp.

i think you need to set up some ssh tunnel.

are you able to scp stuff to the intermediate machine then scp from the gateway to your pc ?

when inside the server, are you able to ping out ?
ping -c 5
ping -c 5 your-ip
edit: are you hiding behind a firewall/ router ? did you forward that port to your local server ?

Last edited by schneidz; 03-27-2010 at 02:30 PM.


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
SCP: Copy file from remote linux server onto a windows machine? Tony Empire Linux - Newbie 21 09-22-2015 11:18 PM
SCP files from one server to another rev1976 Linux - Newbie 4 09-18-2008 09:21 PM
cronjob --> my script to scp to remote server bskrakes Linux - General 5 07-04-2007 05:25 PM
how to copy files from a remote server man1979 Linux - General 3 08-16-2005 07:08 AM
copy files from a server to another..both remote Santosh_d Linux - Networking 1 03-09-2004 08:52 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:39 AM.

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