[Solved] proftpd connection refused

16 posts / 0 new
Last post
#1 Sun, 01/31/2016 - 03:15
humansoft

[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

Sun, 01/31/2016 - 07:43
humansoft

[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.

Old man starter

Sun, 10/09/2016 - 10:30 (Reply to #2)
jodima

thanks a lot for your tutorial

Wed, 04/20/2016 - 09:13
aplima

Thank you, worked like a charm.

Fri, 09/16/2016 - 11:13
khalat

It worked for me too, thank you very much.

Mon, 09/26/2016 - 13:56
shaibow

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 !

Learning ... Fast :)

Tue, 09/27/2016 - 17:30
quasiDigi

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

:)

Wed, 11/16/2016 - 12:14
cashcash

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

Sun, 01/29/2017 - 12:41
cyberndt Pro Licensee

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

Thank you

Sat, 02/18/2017 - 20:23
geocrasher

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

Sun, 03/12/2017 - 19:17
Kvark
Kvark's picture

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

Sun, 03/26/2017 - 21:16
mudgee.garry Pro Licensee

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.

Mon, 03/27/2017 - 15:47
Diabolico
Diabolico's picture

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
<IfModule 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

</IfModule>

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.

- I often come to the conclusion that my brain has too many tabs open. -
Failing at desktop publishing & graphic design since 1994.

Wed, 07/26/2017 - 14:47
j2sw

This worked for me as recent as today.

Wed, 09/13/2017 - 15:05
saythanks

@humansoft: just registered to say thank you!

for debian use:

apt-get purge proftpd-basic

apt-get install proftpd-basic

Thu, 09/14/2017 - 02:39
Joe Pro Licensee
Joe's picture

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.

--

Check out the new forum guidelines!