我在使用vsftpd连接到远程服务器时遇到了问题。从文档中可以看出,如果我只想连接我的用户名/密码,那么应该很少或根本不需要配置。然而,我一直收到一条错误消息
530 Login incorrect.
Login failed.我正在运行Ubuntu12.04 LTS。vsftpd版本是当前版本。下面是我的配置;我删除了所有注释文本,所以这里更容易阅读。有人能看到我的问题吗?
listen=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=YES
secure_chroot_dir=/var/run/vsftpd/empty
rsa_cert_file=/etc/ssl/private/vsftpd.pem发布于 2013-03-14 20:06:50
这是我的vsftpd.conf文件(只有设置),.Logging具有ubuntu用户id和密码。在"vsftpd.chroot_list“中,来自(ubuntu用户)的用户可以连接到ftp服务器。
listen=YES
local_enable=YES
write_enable=YES
local_umask=002
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_file=/var/log/vsftpd.log
async_abor_enable=YES
ftpd_banner=PAP server.
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
ls_recurse_enable=YES
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=vsftpd
rsa_cert_file=/etc/ssl/private/vsftpd.pem更新:不要在ftp服务器上使用vsftpd,而是使用openssh-server。我已经从vsftpd转到openssh,ftp客户端连接时没有任何问题。
然后,您可以连接到openssh内置的sftp服务器:
-Ftp连接类型-> SFTP
-Server ip
-Port取决于您是否更改ssh端口,默认为22。
连接的-Server用户名和密码。
希望能帮上忙。
https://askubuntu.com/questions/267877
复制相似问题