-   Mandriva (
-   -   copy files....using scp help me (

suguname 01-25-2005 03:58 AM

copy files....using scp help me
[root@Simlab-node2 student]# scp root@ dumpfile
root@'s password:
scp: /home/student/aerofoils: not a regular file

zeropash 01-25-2005 04:02 AM

looks like aerofoils is a directory.
if you want to copy directories then use -r option

bbk 01-25-2005 04:04 AM

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.

suguname 01-25-2005 05:33 AM

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

bunnadik 01-25-2005 05:37 AM


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

overlord73 01-25-2005 05:42 AM

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 09:27 PM.