Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question 开发者_Python百科I want to be able to transfer a number of files (html, php, jpg, etc...) to my Amazon EC2 instance that I'm hosting my web server on. What is the easiest or most effective way to do this?
The simplest way is to install an FTP service on your EC2 host, open port 21 in the firewall and Security Group, and use your FTP client of choice on Win7 to push the data up.
For bonus points, use SFTP instead over port 22. You don't mention the EC2 host OS, but if it's Windows you can use msftpsvr on the host and FileZilla on Win7.
Simplest way.
- Launch putty. Linux users can simply launch the terminal.
scp -i /path/to/PEM_File /path/to/file username@host_address.amazonaws.com:/path/to/copy
If you're looking for something UI based, I'd go with Filezilla.
Windows remote desktop allows you to make certain drive on your local computer available on to the cloude instance.
You can also install Dropbox on your EC2 instance and selectively sync files (assuming you use Dropbox). It's a pretty painless way to set things up, though you do add some overhead to your EC2 instance because you're always running Dropbox.
wget -O ./filename <URL TO FILE>
These are all valid ways but not by far the simplest. For small files, once you are connected to your E2C remotely it's as simple as copy/paste or drag/drop from your pc to your remotely connected E2C to copy your files over. For larger files that may not copy this way you can easily add the volume your files exist on as an available local resource then you will simply copy the files from drive to drive on the E2C directly.
- After launching remote desktop before connecting - click 'show options'
- On the Local Resources tab under 'Local devices and resources' click 'More...'
- Put a check in the resource you want to be available and click 'OK'
- Connect as usual and your resource will now be available on the E2C to copy from.
The best way to do is through WinScp you can also use some similar software, for winscp use the pem that you got and convert it into ppk file and utilize the same to login to winscp.
But if you have a linux instance you have the access to add files in only two folders either in home/ubuntu or temp.
If your remote EC2 instance is a remote desktop you can simply transfer files first by connecting with it via an elastic IP and then using simple copy and paste to transfer files between your local computer and remote desktop.
精彩评论