Jump to content

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


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 

Edited by kuyaya
Link to post
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

  • Upvote 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...