Jump to content

scp device.config root@172.16.84.1:/etc/ (LAN Turtle)


Tim Snyder

Recommended Posts

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 

Link to comment
Share on other sites

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 user@123.46.67.89:/file/to/copy.txt /path/to/save.txt

Running the command (local to remote).

scp /file/to/copy.txt user@123.46.67.89:/path/to/save.txt

Running the command (remote to remote).

scp user@123.46.67.89:/file/to/copy.txt user@987.65.43.21:/path/to/save.txt

Link to comment
Share on other sites

Archived

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

  • Recently Browsing   0 members

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