无论出于何种原因,我都无法通过 FTP 客户端或命令行连接/登录到我的 FTP 服务器。我正在使用 Webmin 和 ProFTPd。我已经设置了一个用户,使用简单的密码作为 ftp 组的一部分,并使用 /sbin/nologin 作为 shell 路径。日志仅显示“FTP 连接已打开”和“FTP 连接已关闭”。我指定的被动端口在防火墙上打开。
好像密码不正确,但确实如此。这是我的 proftpd.conf 文件:
# This is the ProFTPD configuration file
# $Id: proftpd.conf,v 1.1 2004/02/26 17:54:30 thias Exp $
DefaultRoot ~
ServerName "ProFTPD server"
ServerIdent on "FTP Server ready."
ServerAdmin root@localhost
ServerType standalone
#ServerType inetd
DefaultServer off
AccessGrantMsg "User %u logged in."
#DisplayConnect /etc/ftpissue
#DisplayLogin /etc/ftpmotd
#DisplayGoAway /etc/ftpgoaway
DeferWelcome off
# Use this to excude users from the chroot
DefaultRoot ~ !adm
# Use …Run Code Online (Sandbox Code Playgroud)