Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

copying  files btween different servers?

Posted on 2004-09-18
3
Medium Priority
?
233 Views
Last Modified: 2010-04-20
I am using ssh to connect to different servers. I want to copy files from the other servers into my machine. what command i should issue to do that?
Thanks
0
Comment
Question by:Carl3003
  • 2
3 Comments
 
LVL 23

Accepted Solution

by:
Mysidia earned 200 total points
ID: 12094257
scp

If you want to upload from the remote server to your own then [on the remote server]

scp filename  username@destination.hostname.com:/path/to/directory/

If you want to download from the remote server then

scp username@hostname.that.has.file:/path/to/name_of_file_to_download  /local/path/to/directory/
0
 

Author Comment

by:Carl3003
ID: 12097462
I was able to load files but i could not upload files.

Was this the command to upload to the remote server?
scp filename  username@destination.hostname.com:/path/to/directory/
0
 
LVL 23

Expert Comment

by:Mysidia
ID: 12098175
Yes, that's the syntax to upload a file to a remote ssh server with scp.

The destination directory needs to already exist

The -r option can also be used to download/upload entire directories recursively also

The  man scp  
command should bring up the manual page for the utility, by the way.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month7 days, 9 hours left to enroll

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question