scp from remote host to local host

cool_cs picture cool_cs · May 31, 2012 · Viewed 129.1k times · Source

I am trying to copy a file from a remote machine to the local machine I am using. Whenever I run this command I get prompted to enter a password. I am not sure what to enter for the password as I never configured any password. Anyone have any tips?

scp stuff.php djorge@localhost:Users/djorge/Desktop

Answer

Snake picture Snake · May 31, 2012

You need the ip of the other pc and do:

scp user@ip_of_remote_pc:/home/user/stuff.php /Users/djorge/Desktop

it will ask you for 'user's password on the other pc.