Solved

copying  files btween different servers?

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

895 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now