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

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

Setting up SSH with BitBucket

Updated 16th August 2022

Setting up your project using a remote repository over SSH can become a painful task for new and even the most seasoned developers. In this article we cover how to set up BitBucket SSH. Repositories not found, incorrect permissions and issues when using your SSH key can all occur, and become very stressful. Below are