LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-17-2011, 06:50 AM   #1
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 610

Rep: Reputation: 31
scp command problem.


I am using fedora 10 in two computers. Just for my own practice I sent a file to my second computer.

1st computer IP is 192.168.1.10
2nd computer IP is 192.168.1.20

PHP Code:
[root@localhost root]#touch file1
[root@localhost root]# scp file1 192.168.1.20:/home 
file1       100% |************************* |  0   00:00

Now I delete file1 in my 1st pc
[root@localhost root]#rm -rf file1 
The file has been successfully copied to the second computer but I again want to copy that file into my local computer by still sitting in my 1st computer.

PHP Code:
[root@localhost root]# scp file1 192.168.1.20:/home 192.168.1.10:/home  
root 192.168.1.20's password:
file1 no such file or directory
permission denied, please try again
permission denied, please try again
lost connection
[root@localhost root]# 
Kindly guide me,
thanks
garden
 
Old 06-17-2011, 06:52 AM   #2
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,261

Rep: Reputation: 297Reputation: 297Reputation: 297
Code:
scp 192.168.1.20:/home/file1 /home
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
scp command zchoyt Linux - General 10 04-02-2014 08:47 AM
Problem executing scp command: missing dependency libcrypto.a shyam16 Linux - Newbie 6 06-15-2011 04:29 AM
Translating windows pscp command to linux scp command help robward Linux - General 2 01-17-2008 07:02 AM
SCP Command yusufs Linux - Newbie 3 11-07-2007 03:44 PM
scp command problem srnerkar1 Linux - Networking 7 11-16-2005 09:06 AM


All times are GMT -5. The time now is 10:45 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration