?
Solved

copying  files btween different servers?

Posted on 2004-09-18
3
Medium Priority
?
224 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Survive A High-Traffic Event with Percona

Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.

Question has a verified solution.

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

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

719 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