Sign uporlog into customize your list.
Start here for a quick overview of the site
Detailed answers to any questions you might have
Discuss the workings and policies of this site
Learn more about Stack Overflow the company
Learn more about hiring developers or posting ads with us
Join Stack Overflowto learn, share knowledge, and build your career.
I have created an AWS EC2 Instance and I want to be able to upload files to the server directory using FileZilla in the simplest and most straightforward fashion possible.
So what is the question? If you have SSH/SFTP credentials, simply use FileZilla and connect to the site? Open the Site Manager, add your site (select SFTP as protocol) and store it. Make Site Manager open up each time you open FileZilla, so you just have to double-click on the Site Manager item.
Any specified problem you are having with your task?
Um, maybe you can accept an answer?
Ive created video tutorial for this just check.
Connect to Amazon EC2 file directory using FileZilla and SFTP, Video Tutorial
Browse to the location of your .pem file and select it.
A message box will appear asking your permission to convert the file into ppk format. Click Yes, then give the file a name and store it somewhere.
If the new file is shown in the list of Keyfiles, then continue to the next step. If not, then click Add keyfile… and select the converted file.
Site Manager Add a new site with the following parameters:
Host: Your public dns name of ec2 instance, or the public ip address of the server
User: From thedocs: For Amazon Linux, the default user name isec2-user. For RHEL5, the user name is often root but might be ec2-user. For Ubuntu, the user name isubuntu. For SUSE Linux, the user name isroot. For Debian, the user name isadmin. Otherwise, check with your AMI provider.
Press Connect Button – If saving of passwords has been disabled, you will be prompted that the logon type will be changed to Ask for password. Say OK and when connecting, at the password prompt push OK without entering a password to proceed past the dialog.
Note:FileZilla automatically figures out which key to use. You do not need to specify the key after importing it as described above.
Checkthispost if you have any permission issues.
I cant access the david jensen link, however I can login as ubuntu (after I followed instructions similar to the ones you wrote above) but not as any other user, do you have any ideas or links which may point me in the right direction here?
for free tier ubuntu distributions username will be ubuntu.
To add to what was mentioned above make sure you delete the default value of 21 in port text box (default for sftp) as it seems to work with port 22. It started working for me when I deleted the port.
@Yasitha Chinthaka I have followed all steps but cannot connect to my instance. It is a large instance on Windows server 2012. Any help appreciated. I have added the inbound rule for SSH on my security group. Is there any other configuration needed or changes since you last posted this answer?
If anyone is following all the steps and having no success, make sure that you are using the correct user. I was attempting to use ec2-user but I needed to use ubuntu.
Make sure you use port 22. Filezilla will default to port 21 for SFTP.
Just one minor note to the well explained accepted answer of Yasitha Chinthaka:
Note: FileZilla automatically figures out which key to use. You do not need to specify the key after importing it as described above.
In my case I already had other 5 ppks from other instances that I was using in the past (with the ppk of the new instance being at the bottom of that list). I added the new ppk of my new instance, and it wouldnt let me connect to it. The error message: too many tries / attempts.
After I deleted the unused ppks, I was finally able to login to the instance.
So no, Filezilla is not that smart 😉
You can use any FTP client. I use winscp and it works just fine. In all these clients; you can specify the ssh secure key.
Old question but what Ive found is that, all you need is to add the ppk file. Settings ->
Add keyfile User name and the host is same as what you would provide when using putty which is mentioned in help someone.
In my case, Filezilla sends the AWS ppk file to every other FTP server I try to securely connect to.
Thats crazy. Theres a workaround as written below but its ugly.
It does not behave well as @Lucio M pointed out.
Agreed. However, given I cant control the operation of the server, is there any way to specify within FileZilla that a site should authenticate with a password rather than key, or vice-versa? Or tell it to try password first, then key only if password fails? It appears to me its trying key first, and then not getting a chance to try password.
Could such an option be added, or are there any good workarounds anyone can recommend? Right now, the only workaround I know is to delete the key from general preferences, add it back only when connecting to the specific site that requires it, then deleting it again when done so it doesnt mess up other sites.
Right now you could have two FileZilla instances with separate config dirs (e. g. one installed and one portable).
I just had this same issue today and managed to resolve it by changing the logon type of the connection using a password in the site manager. Instead of Normal I could select either Interactive or Ask for Password (not really sure what the difference is) and then when I tried to connect to the site again it gave me a prompt to enter my password and then connected successfully. Its not ideal as it means you have to remember and re-type you password every time you connect, but better than having to install 2 instances of FileZilla. I totally agree that it would be very useful in the Site Manager to have full options of how you would like FileZilla to connect to each site which is set up (whether to use a password, key, etc.) Hope this is helpful! Tim
For multiple FTP sites with keys / passwords, use multiple Filezilla installs, OR, use the same ppk key for all servers.
I wish there was a way to tell FileZilla which ppk is for which site in Site Manger
the most simple and straight forward is to create a FTP login. Here is a little and easy to understand tutorial site on stackoverflow itself, how to set things up in 2min…Setting up FTP on Amazon Cloud Server
First of all Filezilla is an FTP/SFTP client/server. We will need to use the client for this purpose.
1) Download the client from the URL:
2) Go to AWS management console and then EC2. Select the instance that you want to access and then copy the DNS or IP address of the instance and then paste it in Filezilla host name.
Follow Image:Amazon Instance Access via FileZilla
3) Then, enter the username for the instance that you have created, For Amazon-ami it will be ec2-user and for other OS it would be different. Then, enter the password and port which will be 21 or 22.
4) Then, it will ask for the key, which is in pem format just select the .pem file and then it will confirm authentication. Click on Yes and then you are Done.
Note: In your EC2 Security group allow port number 21 and 22 whichever required for FTP access.
FileZilla did not work for me, I kept getting this error:
First you have to install some ftp server on your ec2 machine like vsftpd.
Configure vsftpd config file to allow writes and open ports.
Connect with ftp client like filezilla.
Make sure you open port 21 on aws security group.
Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10reputationon this site (theassociation bonus does not count).
Would you like to answer one of theseunanswered questionsinstead?
Get theweekly newsletter!In it, youll get:
Why arent there mtb e-bikes with more than 1x drive-trains?
Why does my bitcoin to US dollar worth change when the stock market is closed?
Can old coins be banned by a soft fork?
Weird situation – using quotes as nouns and making them plural (APA format)
What is the missing number (divisibility by 9)
How can I keep a game running smoothly when two of my players decided to pick the same class?
How to ask to pay for products from a friends shop rather than accepting them as gifts without being rude?
What did M mean by saying that she got one thing right?
How do I write One can … / You can … (general personal pronoun) in Chinese?
Santa is broke. How much does it cost for someone else to be Santa?
Why isnt Anti de Sitter space taken seriously as a model of reality?
This day will be forgotten just like the rest of the ones do – Are alternatives to do correct?
Is there anything that can bypass temporary hit points?
How did they learn the last legend about Luke?
Why is my alternate method of calculating scalar products not working?
Could the Tower of Babel actually stand?
How to make an Epilog moveable with drag and drop
How do they ensure there is one electron on an oil drop in Millikans oil drop experiment?
Is asking about The most interesting bug in your career a good interview question?
International Drivers Permit Thailand
site design / logo 2017 Stack Exchange Inc; user contributions licensed undercc by-sa 3.0withattribution required.rev 2017.12.22.28257