Use SFTP or SCP to upload local files to a Linux instance or download files from the instance to a local computer - Elastic Compute Service (2024)

If your local computer runs a Linux or macOS operating system, you can use SFTP or SCP to upload local files to a Linux instance or download files from an Linux instance to your local computer.

What are SFTP and SCP? What are the differences between them?

SSH File Transfer Protocol (SFTP) and Secure Copy (SCP) are both network protocols for securely transferring files over the SSH protocol. The following table describes the main differences between SFTP and SCP:

Item

SFTP

SCP

Transmission speed

Slower than SCP

Faster than SFTP

Resumable upload

Supported

Not supported

How to use

Graphical interface and command line

Command line

Other features

Actions such as deleting or renaming files are supported

No other features are supported.

Scenario

Prerequisite

Run SFTP commands to upload or download files

  1. Remotely connect the instance on the terminal.

    sftp [The logon username]@[The public IP address of the instance]
  2. Upload or download a file or a folder.

    # Upload a file to the instance.put -r [The absolute path of the file or folder in the local computer] [The root directory that stores the file in the ECS instance]# Download the file to your local computer.get [The absolute path of the file or folder in the ECS instance] [The root directory that stores the file in the local computer]

    Example: Run the following command to upload /users/file.txt in the local computer to the /home/ecs-user directory in the ECS instance:

    put -r /users/file.txt /home/ecs-user

Run SCP commands to upload or download files

Upload local files to an ECS instance

scp [The absolute path of the local file] [The logon username]@[The public IP address of the instance]:[The root directory that stores the file in the instance]

Example:

Run the following command to upload /home/test001.txt in the local computer to the /home directory of the ECS instance whose public IP address is 121.40.XX.XX:

scp /home/test001.txt [email protected]:/home

Download a file to a local computer

scp [The logon username]@[The public IP address of the instance]:[The absolute path of the file in the ECS instance] [The root directory that stores the file in the local computer]

Example:

Run the following command to download the /home/test001.txt in the ECS instance whose public IP address is 121.43.XX.XX to the /home directory of the local computer:

scp [email protected]:/home/test001.txt /home

References

Use SFTP or SCP to upload local files to a Linux instance or download files from the instance to a local computer - Elastic Compute Service (2024)
Top Articles
Command Summary > Network Address Translation
7 Ways Americans Use Their Tax Refunds  - Milli Bank
NYT Mini Crossword today: puzzle answers for Tuesday, September 17 | Digital Trends
Elleypoint
Kaydengodly
Mychart Mercy Lutherville
Nonuclub
Builders Best Do It Center
Shuiby aslam - ForeverMissed.com Online Memorials
Animal Eye Clinic Huntersville Nc
5 high school volleyball stars of the week: Sept. 17 edition
Arre St Wv Srj
Costco Gas Foster City
Rondom Ajax: ME grijpt in tijdens protest Ajax-fans bij hoofdbureau politie
Exterior insulation details for a laminated timber gothic arch cabin - GreenBuildingAdvisor
Viha Email Login
Busted Campbell County
Grimes County Busted Newspaper
Teen Vogue Video Series
How to Grow and Care for Four O'Clock Plants
[PDF] PDF - Education Update - Free Download PDF
Southland Goldendoodles
Play Tetris Mind Bender
Sienna
Renfield Showtimes Near Paragon Theaters - Coral Square
Unreasonable Zen Riddle Crossword
Expression Home XP-452 | Grand public | Imprimantes jet d'encre | Imprimantes | Produits | Epson France
Gunsmoke Tv Series Wiki
Jailfunds Send Message
Lindy Kendra Scott Obituary
Criglist Miami
Turns As A Jetliner Crossword Clue
The Goonies Showtimes Near Marcus Rosemount Cinema
Himekishi Ga Classmate Raw
Delta Math Login With Google
Insidious 5 Showtimes Near Cinemark Southland Center And Xd
Quality Tire Denver City Texas
Craigslist Albany Ny Garage Sales
67-72 Chevy Truck Parts Craigslist
Junee Warehouse | Imamother
PA lawmakers push to restore Medicaid dental benefits for adults
The Boogeyman Showtimes Near Surf Cinemas
Weapons Storehouse Nyt Crossword
Check From Po Box 1111 Charlotte Nc 28201
Weather Underground Cedar Rapids
2017 Ford F550 Rear Axle Nut Torque Spec
Craigslist Binghamton Cars And Trucks By Owner
Willkommen an der Uni Würzburg | WueStart
Vci Classified Paducah
Gonzalo Lira Net Worth
Walmart Front Door Wreaths
Lsreg Att
Latest Posts
Article information

Author: Ray Christiansen

Last Updated:

Views: 5434

Rating: 4.9 / 5 (49 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Ray Christiansen

Birthday: 1998-05-04

Address: Apt. 814 34339 Sauer Islands, Hirtheville, GA 02446-8771

Phone: +337636892828

Job: Lead Hospitality Designer

Hobby: Urban exploration, Tai chi, Lockpicking, Fashion, Gunsmithing, Pottery, Geocaching

Introduction: My name is Ray Christiansen, I am a fair, good, cute, gentle, vast, glamorous, excited person who loves writing and wants to share my knowledge and understanding with you.