1

I am having one Linux Ec2 instance on AWS and my local machine is Windows 10 (64-bit).

I want to download some files or folders from Ec2 to location windows machine.

I am not sure whether it is possible or not? if yes, how we can do that.

thanks.

Girish
  • 885
  • 1
  • 10
  • 23

3 Answers3

1

Got the command to Copy from Windows to Linux.

  1. First you need to install putty (putty-64bit-0.74-installer.msi) on your windows machine

  2. The Command is as follow it will copy the folder(e.g. DokerAutomationResult) to the windows machine from AWSLinux machine.

    pscp -r ubuntu@xx.xxx.xx.xx:/home/ubuntu/DokerAutomationResult ./

    [pscp -r ubuntu@(ipAddress):(locationOfLinuxFileLocation /(locationToCopyInWInodws) ]

For better Understanding: https://www.youtube.com/watch?v=Sc0f-sxDJy0&ab_channel=Liv4IT

Jeremy Thompson
  • 61,933
  • 36
  • 195
  • 321
Girish
  • 885
  • 1
  • 10
  • 23
1

I tried this it worked for me. Download https://mobaxterm.mobatek.net/ its an Enhanced terminal for Windows.

You can link your EC2 instance directly via SSH its pretty simple to set up. Just follow the instuctions they've given. Once linked, its super easy to export, import, create files and folders all via mobaxterm.

folders in mobaxterm:

enter image description here

RBT
  • 24,161
  • 21
  • 159
  • 240
  • 1
    @RBT just a use a bang `![folders in mobaxterm][1]` – Jeremy Thompson Jun 03 '22 at 05:47
  • ohh! Nice trick. I wasn't aware. Very slick solution. Now I can make the edits at a much faster pace. Thank you so much Jeremy for sharing this info. Appreciate it. – RBT Jun 03 '22 at 22:33
0

Yes it is possible to download files from ec2 linux instance to local system.

You can use scp -i key user@ip add:/file location which you want to download.

. will download file in your current location on local system

Jeremy Thompson
  • 61,933
  • 36
  • 195
  • 321