I use netstat -plnt
check the vsftpd
deamon, it is listening the IPv6(tcp6
) address, so I use the FileZilla can not connect the VM.
[root@localhost src]# netstat -plnt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 192.168.122.1:53 0.0.0.0:* LISTEN 2092/dnsmasq
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1537/sshd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 1540/cupsd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1969/master
tcp6 0 0 :::21 :::* LISTEN 24464/vsftpd
tcp6 0 0 :::22 :::* LISTEN 1537/sshd
tcp6 0 0 ::1:631 :::* LISTEN 1540/cupsd
tcp6 0 0 ::1:25 :::* LISTEN 1969/master
So, how can I change the vsftpd
listen port to the IPv4 (tcp
)?