0 votes
1 view
in AWS by (8.9k points)

I have an Amazon EC2 instance running. When i access the url, I get the Apache Test page, and it says that i'll have to upload my files into /var/html/

My question is, how do i do it? I use Mac OS X 's terminal for accessing the instance.

FTP doesn't seem to work. Is there any other way?

1 Answer

0 votes
by (18.5k points)

use the following command:

scp -i MyKeypair.pem FileToUpload.pdf [email protected]:FileToUpload.pdf

Note: replace "ec2-123-123-123-123.compute-1.amazonaws.com" with the public DNS name of your instance.

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...