连接ftp提示connection refused
有可能是配置文件没有改好。
当listen和listen_ipv6同时打开,就会出错,此时,注视掉一个即可。
接着重启服务
sudo service vsftpd restart
再次连接即可。
zhuyu@zhuyu:~$ ftp 127.0.0.1
Connected to 127.0.0.1.
220 (vsFTPd 3.0.3)
Name (127.0.0.1:zhuyu): zhuyu
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
drwxr-xr-x 2 1000 1000 4096 Aug 12 10:37 Desktop
drwxr-xr-x 2 1000 1000 4096 Aug 12 10:37 Documents
drwxr-xr-x 2 1000 1000 4096 Aug 12 11:17 Downloads
drwxr-xr-x 2 1000 1000 4096 Aug 12 10:37 Music
drwxr-xr-x 2 1000 1000 4096 Aug 12 10:37 Pictures
drwxr-xr-x 2 1000 1000 4096 Aug 12 10:37 Public
drwxr-xr-x 2 1000 1000 4096 Aug 12 10:37 Templates
drwxr-xr-x 2 1000 1000 4096 Aug 12 10:37 Videos
226 Directory send OK.
ftp>
Ftp连接显示connection refused问题的解决
于 2022-08-13 08:59:55 首次发布