LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-27-2010, 12:34 PM   #1
disruptive
Member
 
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 000.000.000.00:~/Work

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.

Thanks
 
Old 03-27-2010, 12:41 PM   #2
Mr. ameya sathe
Member
 
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 000.000.000.00:~/Work Papers
 
Old 03-27-2010, 01:09 PM   #3
disruptive
Member
 
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, 01:24 PM   #4
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,105

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
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 www.linuxquestions.org
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 01:30 PM.
 
  


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


All times are GMT -5. The time now is 12:22 PM.

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