Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 20th June 2011, 06:42 AM
mypass604 Offline
Registered User
 
Join Date: May 2010
Posts: 27
windows_vistachrome
scp command problem.

I have two computers in my home running ferora . I want to copy a file from my 2nd computer to my local computer.

Local PC:- 192.168.1.10

Remote PC:- 192.168.1.20

[root@localhost root]#scp 192.168.1.20:/home file1.txt
root@192.168.1.20s password:
scp: /home not a regular file
[root@localhost root]

Kindly help me.
Thanks,
mypass
Reply With Quote
  #2  
Old 20th June 2011, 07:12 AM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,300
linuxfedorafirefox
Re: scp command problem.

On the remote machine /home is a directory, not a regular file, and likely a rather large one.

You probably just want to copy he single file:
scp 192.168.1.20:/home/file1.txt .

If you really want to copy the entire directory use the -r option
scp -r 192.168.1.20:/home copy_of_home
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
Reply With Quote
  #3  
Old 20th June 2011, 10:06 AM
mypass604 Offline
Registered User
 
Join Date: May 2010
Posts: 27
windows_vistachrome
Re: scp command problem.

thanks "stevea " for the reply. Well on the remote computer "/home" is a directory and "file1.txt " is a file inside the "/home" directory.

when I issue the command

scp 192.168.1.20:/home/file1.txt

usage: scp [-pqrvBC46] [-F config] [-S program] [-P port]
[-c cipher] [-i indentity] [-o option]


it show me shuc h like thing and then the prompt appear.
How can i copy a single file ?

thanks
mypass
Reply With Quote
  #4  
Old 20th June 2011, 02:05 PM
smr54 Online
Registered User
 
Join Date: Jan 2010
Posts: 4,979
linuxopera
Re: scp command problem.

When that happens, it means there's an error in syntax, as you've probably guessed.
You need to specify the destination as well. If you want to copy it to the directory that you are in, you can just use a period, as it means current directory.

So,
Code:
scp 192.168.1.20:/home/file1.txt .
Note the space and period after "file1.txt"
Reply With Quote
  #5  
Old 11th June 2012, 07:42 PM
lalit375 Offline
Registered User
 
Join Date: Jun 2012
Location: india
Posts: 1
linuxfedorafirefox
try to connect but have some problem

Sir,
i am very new to fedora14 . i am trying the same to copy one file to another pc
but getting some error
[root@sohan lalit]# scp setup-simpleca 172.16.1.48:/home/
ssh: connect to host 172.16.1.48 port 22: Connection refused
lost connection
I dont know how to do that
please help me sir..
Reply With Quote
  #6  
Old 11th June 2012, 08:18 PM
Adunaic's Avatar
Adunaic Offline
Registered User
 
Join Date: Mar 2009
Location: Lancaster, UK
Posts: 883
linuxsafari
Re: scp command problem.

Please do not open old threads. Start a new one. Your problem is that the machine you are trying to copy to does not allowing incoming connections on port 22. The firewall is blocking the copy.
Reply With Quote
  #7  
Old 12th June 2012, 11:45 AM
george_toolan Offline
Registered User
 
Join Date: Dec 2006
Posts: 1,717
linuxfirefox
Re: scp command problem.

Either a firewall is blocking the connection or there is no sshd running

Furthermore "root" might not be able to connect. Please use a different username and /home is usually a directory. Make sure user "username" has write permission in that directory.

Try something like

Code:
scp filename username@172.16.1.48:/home/username
Reply With Quote
Reply

Tags
command, problem, scp

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with su command Rince83 Using Fedora 8 30th September 2010 09:40 AM
Problem with gcc command girichavana Using Fedora 3 6th March 2010 05:10 AM
terminal command problem "chkconfig: command not found" Omni-Tom Using Fedora 3 19th July 2008 03:29 AM
Problem using yum command saiarun Using Fedora 3 16th August 2007 05:18 AM
Problem with cp command PaLoBo Using Fedora 3 15th November 2006 06:24 PM


Current GMT-time: 06:25 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat