LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   scp command problem. (https://www.linuxquestions.org/questions/linux-newbie-8/scp-command-problem-886853/)

gardenair 06-17-2011 05:50 AM

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

Guttorm 06-17-2011 05:52 AM

Code:

scp 192.168.1.20:/home/file1 /home


All times are GMT -5. The time now is 12:49 PM.