1
This answer must exist somewhere as it's so basic, but I can't find it.
I have a file on my local computer that I want to copy to a remote host. I know how to use scp, but if I do it from my local host to the remote host, I get a permission error. I can log in to the remote host with root privileges, but I don't know how to identify my local machine (I tried both the internal and external IP addresses and timed out both times). Either method would work for me (although ideally I'd like to know how to do both!)
This is part of an exercise to learn Linux better, so if I'm not presenting the necessary information please let me know what's specifically needed and I'll do my best to elaborate.
(Bonus question: Would love any recommendations for good Linux resources!)
Probably a firewall is blocking the incoming ssh connection to your local machine. However, to figure out why your
scp
command does not work, it would be really helpful to (i) see the command and (ii) the exact error message. – mpy – 2014-02-19T19:12:17.6631What command are you using for scp, and what user are you logged in as. The problem you are describing might imply you are logging in as a user, then elevating your privs to root - in which case scp does not see the elevated privs. I often get round this problem by copying to /tmp and then moving the file. – davidgo – 2014-02-19T19:15:33.567
Good Linux resources? Try the [linux] tag here on SuperUser ;) – Piskvor left the building – 2014-02-19T20:50:58.850