Copying File from Remote Server to Local Machine

Here’s a snippet how to get your files from remote server to your local machine using scp.

Copy to defined path.

$ scp user@host:/remote/file/path/data /local/target/destination/path

Copy to current directory.

$ scp user@host:/remote/file/path/data .

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.