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.

3
  • 10
    This is THE answer. Please note that the path starts after the first /, so if you want an absolute path you'll put // after the port (eg. scp://[email protected]:22//etc/*), or it would be interpreted as local to user's home. You can use -v to see what files are being transferred, very useful when using wildcards.
    – Vanni
    Commented Jun 4, 2020 at 13:17
  • 4
    @Vanni, words do not describe how much your simple comment o if you want an absolute path you'll put // after the port (eg. scp://[email protected]:22//etc/*), or it would be interpreted as local to user's home just helped....I've wasted nearly a complete day pulling my hair out because of precisely that. I must have read the rest of the internet about SCP before finding this...Thanks!!
    – Chris
    Commented May 16, 2021 at 10:18
  • @Chris I'm glad it helped! :)
    – Vanni
    Commented May 16, 2021 at 15:32