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.

Start WSL2 services on Windows startup

Updated 16th August 2022

In some circumstances, you may want to automatically start your WSL2 (Windows Subsystem for Linux) services on Windows startup such as Apache2, Nginx, and MySQL. Follow along below to learn how to start your services when you boot your machine. Create a startup script The first step is to create a startup script. This is

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

WSL vs Dual Boot speed test

Updated 16th August 2022

In this experiment, I will be using WSL2 running Ubuntu 20.04 and Ubuntu 20.04 dual-booted on the same Dell XPS. Is there a noticeable difference? Follow along for the results of the WSL vs Dual Boot speed test. If you are like me and use different development environments a lot, you may find the results