When I try connect my local FTP server I have received the following error message:
$ ftp localhost
ftp: connect to address ::1: Connection refused
ftp: Trying 127.0.0.1 ...
ftp: connect to address 127.0.0.1: Connection refused
ftp: no response from host
I have installed pure-ftpd on my High Sierra MacOS just like this:
$ brew install pure-ftpd
And after this I have started it:
$ brew services list | grep ftp
proftpd stopped
pure-ftpd started alexandre1202 /Users/alexandre1202/Library/LaunchAgents/homebrew.mxcl.pure-ftpd.plist
vsftpd stopped
I also have tried with vsftpd and profptd but the issue is the same.
As we can see above the service is started but when I also have checked local connections and 21 port is not ESTABLISHED or LISTEN
# netstat -f inet -tan | grep 21
In addition I have checked by any ftp server on system
alemacbookpro:~ root# ps aux | grep ftp
root 60696 0.0 0.0 4279600 0 s002 R 6:22PM 0:00.00 grep ftp
alemacbookpro:~ root#
And if I try connect using the following, we can see that there is no LISTEN service:
# telnet localhost 21
Trying ::1...
Connection failed: Connection refused
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
I apreciate any help to figure out why I can not use FTP server locally.