LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

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

Rep: Reputation: 15
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
 
Old 01-25-2005, 04:02 AM   #2
zeropash
Member
 
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
bbk
Member
 
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@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.
 
Old 01-25-2005, 05:33 AM   #4
suguname
Member
 
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@10.255.240.139:/home/student/aerofoils <current directory>
invalid command

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

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

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


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 01:32 AM.

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