Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-25-2005, 03:58 AM
|
#1
|
Member
Registered: Jan 2005
Location: chennai
Distribution: mandrake
Posts: 70
Rep:
|
copy files....using scp help me
Hi,
[root@Simlab-node2 student]# scp root@10.255.240.139:/home/student/aerofoils/ dumpfile
root@10.255.240.139's password:
scp: /home/student/aerofoils: not a regular file
|
|
|
01-25-2005, 04:02 AM
|
#2
|
Member
Registered: Apr 2003
Location: Bangalore,India
Distribution: FC2, RHES, RH9, FC3, FC1, Slackware 3.0
Posts: 208
Rep:
|
looks like aerofoils is a directory.
if you want to copy directories then use -r option
|
|
|
01-25-2005, 04:04 AM
|
#3
|
Member
Registered: Jan 2005
Location: Budapest/Hungary
Distribution: knoppix-hdd/debian
Posts: 56
Rep:
|
You have given very small information about your problem :-(
It looks that you are trying to scp a directory...
there are two options for you.
1) scp a single file, as in your example:
scp root@10.255.240.139:/home/student/aerofoils/dumpfile dumpfile
or
2) scp the whole directory using -r (recurse) option, but, in this case, target must be a directory (e.g. "." for current dir)!
scp -r root@10.255.240.139:/home/student/aerofoils/ .
hope I could help.
|
|
|
01-25-2005, 05:33 AM
|
#4
|
Member
Registered: Jan 2005
Location: chennai
Distribution: mandrake
Posts: 70
Original Poster
Rep:
|
sir i want to copy a directory from one system another.
aerofoils is a directory in a sys1
i need to copy to current directory.
when i type,
sftp>scp -r root@10.255.240.139:/home/student/aerofoils <current directory>
invalid command
so what should i do?
please help me .....
|
|
|
01-25-2005, 05:37 AM
|
#5
|
Member
Registered: Jan 2005
Location: Övik, Sweden
Distribution: MDK 10.1
Posts: 450
Rep:
|
Quote:
sftp>scp -r root@10.255........
|
You can't be in the sftp command shell when trying to scp.
sftp is an alternative to scp and works like regular ftp, but is secure.
- Peder
|
|
|
01-25-2005, 05:42 AM
|
#6
|
Member
Registered: Apr 2004
Location: ..where no life dwells..
Posts: 541
Rep:
|
from ur machine:
scp -r root@.......
(normally ssh-root-login is not permitted?!)
from remote to your box:
scp -r dirname login@yourbox .....
|
|
|
All times are GMT -5. The time now is 10:12 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|