[Solved] proftpd connection refused

Hi,

I’m tired of problems with ftp access refused in Virtualmin.
I had to run the auto-install in centos 6 and CentOS 7.
I can not solve a problem that does not have ftp connect.

following is the order of proceeding, the ftp access is denied to the end.

install CentOS basic server
yum update
reboot
download install.sh
sh install.sh

I had to run the auto-install on CentOS 7, the ftp access was denied.
Below is the error information.
Ask for advice.

service proftpd status

Redirecting to /bin/systemctl status proftpd.service
● proftpd.service - ProFTPD FTP Server
Loaded: loaded (/usr/lib/systemd/system/proftpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since 일 2016-01-31 17:41:21 KST; 3min 57s ago
Process: 3008 ExecStart=/usr/sbin/proftpd $PROFTPD_OPTIONS (code=exited, status=1/FAILURE)

1월 31 17:41:18 huso.co.kr systemd[1]: Starting ProFTPD FTP Server…
1월 31 17:41:21 huso.co.kr proftpd[3008]: 2016-01-31 17:41:21,665 huso.co.kr proftpd[3008]: fatal: SFTPHostKey: un…conf’
1월 31 17:41:21 huso.co.kr systemd[1]: proftpd.service: control process exited, code=exited status=1
1월 31 17:41:21 huso.co.kr systemd[1]: Failed to start ProFTPD FTP Server.
1월 31 17:41:21 huso.co.kr systemd[1]: Unit proftpd.service entered failed state.
1월 31 17:41:21 huso.co.kr systemd[1]: proftpd.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

Thank you

[Solved] proftpd module delete and yum erase and yum install

/ webmin / webmin configuration / webmin module / Delete / select ProFTPD Server
check Ignore module dependencies when deleting
Delete Selected Modules

/ System / Bootup and Shutdown / select proftpd
Disable Now and On Boot

Reboot System

In terminal

yum erase proftpd

yum -y install proftpd

service proftpd start

check connect
telnet (your ip) 21

if succes

/ webmin / webmin configuration / webmin module / Install / Standard module from www.webmin.com

Select Proftpd

check Ignore Dependencies
check Grant access to all Webmin users

Install module

/ System / Bootup and Shutdown / select proftpd
Start Now and Boot

Reboot System

That is done.

Thank you.

Thank you, worked like a charm.

It worked for me too, thank you very much.

Thanks It Works for me , I was getting Connection attempt failed with “ECONNREFUSED - Connection refused by server” by using filezilla to connect with centos 7 !

Ufffs, Thank you very much, you just got me out of a loop of headaches

:slight_smile:

thanks a lot for your tutorial

Had the same problem and that work like a charm for me.
Thanks a lot

This post may be old but method still works on CentOS 7.3

Thank you

I too can confirm that this works on CentOS 7.3. The only thing of note is that no reboots are required.

Huh, spend 4h try to make that work, and finally :slight_smile: In my case need to remove pure-ftp to release port 21, now working as a charm! Thanks a lot!

Thanks for the fix, worked for me CentOS 7.3
From looking at above this has been going on for some time now, & like the others I’ve just waisted way too much time on this.

Are the Virtualmin Forum moderators a where of this?
so thye can fix or at least have some kind of warning for CentOS users.

No need to remove proftpd and install again. On Centos 7 there are two reasons proftpd will fail:

  1. Check my post here: https://www.virtualmin.com/comment/759687#comment-759687

  2. Entirely or partially missing this part of the code in proftpd.conf:

    LoadModule mod_sftp.c

    SFTPEngine on
    Port <default port 2222 but free to change>
    SFTPLog /var/log/proftpd/sftp.log

    SFTPHostKey /etc/ssh/ssh_host_rsa_key
    SFTPHostKey /etc/ssh/ssh_host_dsa_key

    SFTPAuthMethods password publickey
    SFTPAuthorizedUserKeys file:/etc/proftpd/authorized_keys/%u

    SFTPCompression delayed

This problem was reported several times and if you still have it on fresh Centos 7 and Vmin installation that means the devs didnt repair the problem. You can always report the bug in bug/issue tracker.

P.S. It could be some new bug but you should first try to fix the problem as removing software and installing again isnt the best solution.

This worked for me as recent as today.

@humansoft: just registered to say thank you!

for debian use:

apt-get purge proftpd-basic

apt-get install proftpd-basic

I believe this is fixed in the current version of virtualmin-config, without having to do anything manually.

If you have a system exhibiting the problem, and it was installed with any 6.0.x version of the installer, make sure virtualmin-config package is updated to the latest version (6.0.18, as of this writing), and run:

# virtualmin config-system --include ProFTPd

There was a regression for a little while that caused some modules to not be loaded correctly.

If that doesn’t fix it, please report it along with your distro and version and what specifically isn’t working. It’ll get fixed, if I know about it.