How to Upload and Download files to and from a Linux server over SSH

By Dillon Smart · · · 0 Comments

Its common place to need to upload and download files to and from a remote Linux server.

To upload and download files from a remote Linux server you can use the scp (secure copy) command.

To download a file you can use:

scp username@ip-or-server-name:~/path/to/file/your/downloading /path/to/location/to/download/to

To upload a file you can use:

scp /path/to/file/your/uploading username@ip-or-server-name:/path/to/location/to/upload/to

Note: It is best practice to connect to remote servers using either a strong unique password or using an SSH key pair.

Refer to How to generate an SSH key and add to authorized_keys

LinuxSSHUbuntu

0 Comment

Was this helpful? Leave a comment!

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

The Ultimate guide to create Apache2 Virtual Hosts (2022)

Updated 16th August 2022

In this post, I will be creating Virtual Hosts for Apache2 on WSL2 (Windows Subsystem for Linux). Follow along with this Ultimate guide to create Apache2 Virtual Hosts. The steps in this tutorial can be carried over onto any environment running Apache2. What we’ll cover Creating the directory structure Creating a symbolic link in Ubuntu

[UPDATED 2022] Change PHP version on Ubuntu, Linux

Updated 23rd August 2022

In this post, I will show you how to switch PHP version on Ubuntu, Linux. If you are developing on Windows, follow this guide to set up Windows Sub System for Linux. What will be covered: Change PHP version for Apache2 Change PHP version for Nginx Change PHP CLI version In this example, we will

The ULTIMATE guide to setup Windows Subsystem for Linux (WSL) with Ubuntu, Apache2, MySQL and PHP

Updated 16th August 2022

Windows is now good for development! Yes! All thanks to Windows Subsystem for Linux (WSL). No more WAMP or Xampp, WSL can do everything you need. In this ultimate guide to setup Windows Subsystem for Linux with Ubuntu, Apache2, MySQL, and PHP we will cover: What is Windows Subsystem for Linux? Setting up Windows Subsystem