Installation with AWS / EC2 - FATAL ERROR: Received unexpected end-of-file from SFTP server

Hi i am installing hestiacp on aws/ec2 using ubuntu 24.02 as the OS. When I first have the instance setup on AWS/EC2 - I had no problem login into the server via SFTP using the PEM key file as the root user. After I finished the installation hestiacp and restart the server, i am no longer able to login via SFTP and. the SSH connection via terminal is blocked also.

The error i am getting is:

FATAL ERROR: Received unexpected end-of-file from SFTP server

Here are something I’ve tried so far:

  1. Take out the vsftp at the install
  2. Take out the proftp during the install
  3. disable firewall
  4. disable ssh via the backend of hestiacp

I am still getting the same error. I know i am having conflict issues with SSH from hestiacp and ssh credentials from AWS/EC2

Anyone can offer a way to resolve this issue? Or is there a way to install the barebone of hestiacp without the SSH that comes with hestiacp?

Check if this helps: After restart apache2 and clamav-daemon not start automatic - #4 by sahsanu

The sftp amend by sed.

Also, is the user having ssh & bash login option?

1 Like

Thank you @nu01 … it worked like a charm.

2 Likes