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 |
rsync -avz Remote_mc_IP_address:path to the directory ur_local_directory.
For eg: rsync -avz 000.000.000.00:~/Work Papers |
Thanks. But I'm getting the same problem as before: "No route to host". Any ideas?
|
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 ? |
All times are GMT -5. The time now is 07:22 PM. |