Jump to content

scp device.config [email protected]:/etc/ (LAN Turtle)


Tim Snyder

Recommended Posts

Posted

If you have an updated machine, scp should be pre-installed in the command line.

It's insalled on my machine and I don't remember installing any third party tool for scp in command line.

Type "scp" in cmd and see if it finds the command. If not, consider using the options from Jtyle6 

Posted

Here's a couple examples.

Command

Copy file from remote host to local host.

scp [user]@[host]:[path] [path]

Copy file from local host to remote host.

scp [path] [user]@[host]:[path]

Copy file from remote host to remote host.

scp [user]@[host]:[path] [user]@<host>:<path>

Example

Running the command (remote to local).

scp [email protected]:/file/to/copy.txt /path/to/save.txt

Running the command (local to remote).

scp /file/to/copy.txt [email protected]:/path/to/save.txt

Running the command (remote to remote).

scp [email protected]:/file/to/copy.txt [email protected]:/path/to/save.txt

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...