Solved

copying  files btween different servers?

Posted on 2004-09-18
3
219 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 50 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

628 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