Solved

copy file in linux

Posted on 2009-04-14
3
221 Views
Last Modified: 2013-12-16
How can i shell into a remote server and copy a file back to my pc
0
Comment
Question by:fccinvest
  • 2
3 Comments
 
LVL 29

Expert Comment

by:fosiul01
ID: 24142648
do you want to do this automate or just manualy ??

to manualy

 scp -r root@55.66.77.88:somedir somedir

so it will copy somedir from remote to the local pc

or you can make it automate by RSYNC with passwordless backup
0
 

Author Comment

by:fccinvest
ID: 24142761
manually is fine but I am on a windows xp pc using putty to shell into the linux box.
Then I went to the folder where the file is at and from there type your command ?
Using secure copy what is the -r switch for ?  Then does rot@public address represent
the admin account at my xp box?  So if I want to copy the file to my xp box in the c:\ directory I use

scp -r filename rick@55.66.77.88:c:\
0
 
LVL 29

Accepted Solution

by:
fosiul01 earned 500 total points
ID: 24142805
ommmmm it would not work that way,

because you would not be able to copy linux file directory to C:/ drive

if you want to do that you need to install Cygin ,

or have to use wincp to download file  from linux to windows

or have to install ftp server and download file

but i guess Cygin would be perfect,

i will sent you some tutorial on this
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

746 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

9 Experts available now in Live!

Get 1:1 Help Now