Cannot use FTP on EC2 instance

adeyjones

Active Member
Apr 26, 2019
42
3
8
Merseyside, UK
cPanel Access Level
Root Administrator
Hi all.

So I have 2 x AWS EC2 instances, both running WHM/cPanel, and both set up identically (or so I thought) following this guide: Launch an AWS™ AMI™ Instance | cPanel & WHM Documentation

On one of the instances I can access each account individually via FTP no problem at all. However on the other, I am having great difficulty. It has 3 accounts at present, connecting to one of them gives me "Login failed. Exhausted available authentication methods. Please contact your web hosting service provider for assistance.", connecting to the second account seems to work but I notice it has a .pem certificate attached in CyberDuck (which I don't want to have to do for each account), and then connecting to the third account which I have created today will connect but not list the directory and times out - "Operation timed out. The connection attempt was rejected. The server may be down, or your network may not be properly configured."

So I am not 100% how it should have been set up correctly or what I need to look at to rectify this, but would really appreciate if someone could assist and let me know what I need to look at within WHM in order to just be able to connect to accounts without any additional certificates etc.. as they're not used on instance 1.

Thanks.
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
10,360
1,632
363
cPanel Access Level
Root Administrator
Hey there! For the connection that works but doesn't list files, that sounds like a passive FTP port issue. Can you try the details mentioned here to resolve that?


On the "login failed" account, are you using the main cPanel username or an additional FTP account? It's important to note that additional FTP users that have been created on the system need to use the full "[email protected]" address in order to connect.
 

adeyjones

Active Member
Apr 26, 2019
42
3
8
Merseyside, UK
cPanel Access Level
Root Administrator
Hi @cPRex - I use the main cPanel account details on all FTP connections.

I have looked in pure-ftpd.conf at the passive ports and confirmed in my AWS security groups that these ports are open.

Is there an easy way of comparing my 2 FTP configs to see if there are any differences? Is most of the config for FTP done in this pure-ftpd.conf file?
 

adeyjones

Active Member
Apr 26, 2019
42
3
8
Merseyside, UK
cPanel Access Level
Root Administrator
Further to previous, I have this morning compared pure-ftpd.conf on both servers, also all settings in Basic WHM Setup, Tweak settings, all FTP sections and I cannot see any differences at all between the 2 servers, yet 1 is absolutely fine connecting on all accounts and the other will not - any further ideas I could try?

Thanks.