You can use SCP or WinSCP to transfer files or folders to your EC2 instance.
For SCP, you need to run the following command on your cmd of your local machine:
scp -i path/to/pem path/to/file username@PublicDNS/home/username
For WinSCP, download and install WinSCP tool and follow the below-mentioned steps:
1. Open WinSCP console and provide the required information such as Hostname (value: Public IP of your instance), the user name( value Amazon linux instance is ec2-user and value for ubuntu instance is ubuntu), then click on advanced.
3. A new window will be displayed. Select SSH from the left pane then select Authentication.
4. Browse and select your private key file then click ok then click login. When the dialog box pops up, click yes.
5. Now you just have to select files from the left pane(your local machine), drag and drop files on the right pane (your instance's home directory).
Do you want to master AWS, then do checkout the aws course training by Intellipaat.