Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in AWS by (12.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.2k points)

use the following command:

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

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

Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer
Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94k users

Browse Categories

...