LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   scp from remote machine (https://www.linuxquestions.org/questions/ubuntu-63/scp-from-remote-machine-648121/)

tERn 06-09-2008 04:25 PM

scp from remote machine
 
Hey people i had some trouble earlier, i wanted to get some files that is on another machine on our university network. So i used ssh to get to this machine, but i didnt know how to use scp to get the file from that computer to mine, i know how to use scp to get files onto that computer. I tried like scp filename my_ip:///filename but then i got a connection lost error. So then i started firestarter and tried 2 scp again but and firestarter wasnt blocking it. Well then i just emailed me the file from the remote computer but i still wanna know how to scp to my computer from a remote machine. Thanks

Uxinn 06-09-2008 05:15 PM

:rolleyes:
http://www.linuxquestions.org/questi...?highlight=scp

pinniped 06-09-2008 05:17 PM

1. 'sftp' often runs and you can use that

2. it's weird doing ssh to a remote, then using that session to transfer a file to your local machine via scp. You should just run scp from the local machine to copy the remote (unless of course you're not sure of the filename beforehand, in which case sftp is more convenient if available).

3. If you read the scp manual you will see you can do things like:
scp my_local_file my_remote_user_name@some.url:the/remote/directory/and/my_local_file

If you have a '/' after the ':' you need the full path name; otherwise the directories are taken to be in whatever the HOME is for the remote.

tERn 06-09-2008 05:39 PM

Thank u very much, i got i right with scp with the scp user@blala:file ./ and sftp also worked.


All times are GMT -5. The time now is 03:34 PM.