Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • it's slightly unclear whether your problem is only related to being on the wrong machine...could you please prefix each command with the host you are running on? e.g. localuser@machineA: ssh -p 2222 username@domain (to indicate that you are running the ssh command as localuser on machineA) Commented Feb 17, 2014 at 16:09
  • 2
    when using scp, the remote side always has to contain the colon (e.g. remotehost:/tmp), else it will just do an ordinary copy (scp /tmp/foo.txt example.com will copy /tmp/foo.txt into a local file example.com) Commented Feb 17, 2014 at 16:11
  • remove the -r flag, as this is not needed for copying single files (it's used to recursively copy directories) Commented Feb 17, 2014 at 16:12
  • Are you issuing the scp command inside the sshe session? It would make sense if you are on the local machine. Commented Feb 17, 2014 at 16:13