Skip to content

Using SCP to Copy a File from a Remote Host to your Local Host Example

by Jon on November 13th, 2010

In order to copy a file from a remote host with a non standard ssh port to your local host you need to format the command so the remote host is first like in the following syntax.

scp -P (port number) username@(hostname or ip):/directory/filename /local-directory/

Here is an example of how I used that command.

scp -P 222 root@ /usr/src/

From → Linux

No comments yet

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS

%d bloggers like this: