LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (http://www.linuxquestions.org/questions/mandriva-30/)
-   -   copy files....using scp help me (http://www.linuxquestions.org/questions/mandriva-30/copy-files-using-scp-help-me-281935/)

suguname 01-25-2005 03:58 AM

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

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

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@10.255.240.139:/home/student/aerofoils <current directory>
invalid command

so what should i do?
please help me .....

bunnadik 01-25-2005 05:37 AM

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

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:28 PM.