Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.


  Search this Thread
Old 01-25-2005, 03:58 AM   #1
Registered: Jan 2005
Location: chennai
Distribution: mandrake
Posts: 70

Rep: Reputation: 15
copy files....using scp help me

[root@Simlab-node2 student]# scp root@ dumpfile
root@'s password:
scp: /home/student/aerofoils: not a regular file
Old 01-25-2005, 04:02 AM   #2
Registered: Apr 2003
Location: Bangalore,India
Distribution: FC2, RHES, RH9, FC3, FC1, Slackware 3.0
Posts: 208

Rep: Reputation: 30
looks like aerofoils is a directory.
if you want to copy directories then use -r option
Old 01-25-2005, 04:04 AM   #3
Registered: Jan 2005
Location: Budapest/Hungary
Distribution: knoppix-hdd/debian
Posts: 56

Rep: Reputation: 15
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@ dumpfile


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@ .

hope I could help.
Old 01-25-2005, 05:33 AM   #4
Registered: Jan 2005
Location: chennai
Distribution: mandrake
Posts: 70

Original Poster
Rep: Reputation: 15
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@ <current directory>
invalid command

so what should i do?
please help me .....
Old 01-25-2005, 05:37 AM   #5
Registered: Jan 2005
Location: Ívik, Sweden
Distribution: MDK 10.1
Posts: 450

Rep: Reputation: 30
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
Old 01-25-2005, 05:42 AM   #6
Registered: Apr 2004
Location: ..where no life dwells..
Distribution: RH,FC/SuSE/Debian/HPUX/OSX
Posts: 518

Rep: Reputation: 30
from ur machine:
scp -r root@.......
(normally ssh-root-login is not permitted?!)

from remote to your box:
scp -r dirname login@yourbox .....


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
SCP Copy File SSH petenyce Linux - Wireless Networking 2 10-05-2005 03:11 PM
useing SCP to copy entire directories with sub folders? Lleb_KCir Linux - General 5 09-13-2005 09:08 PM
copy files....using scp help me suguname Mandriva 2 01-26-2005 01:14 AM
SCP Copy from Linux to Windows? mhague Linux - Newbie 8 11-03-2004 01:56 PM
scp :copy file from one remote comp to another aniketh Linux - Networking 4 06-16-2004 02:31 AM

All times are GMT -5. The time now is 04:48 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration