Ubuntu: How to make ftp work on ubuntu 14.04



Question:

I have tried many answers but I was unable to make ftp work on my ubuntu 14.04.ftp works with localhost but not with other ip's

Whenever I try to use

>ftp <ip-address>  

I get this error

ftp: connect: Connection refused  

I have installed ftpd and ftpd this is output of

dpkg -l | grep 'ftp'

ii  ftp                                                   0.17-28                                             amd64        classical file transfer client  ii  ftpd                                                  0.17-34                                             amd64        File Transfer Protocol (FTP) server  rc  vsftpd                                                3.0.2-1ubuntu2.14.04.1                              amd64        lightweight, efficient FTP server written for security  

Also This is the output of

iptables -L

Chain INPUT (policy ACCEPT)  target     prot opt source               destination             Chain FORWARD (policy ACCEPT)  target     prot opt source               destination             Chain OUTPUT (policy ACCEPT)  target     prot opt source               destination    

output of

netstat -l | grep ftp

tcp        0      0 *:ftp                   *:*                     LISTEN       

Please help me!


Solution:1

Check to see if the ftp server is running:

ps aux | grep ftp

If not, see if you can start/stop or restart the service:

sudo service ftpd stop && sudo service ftpd start

or

sudo service ftpd restart

You can also check to see whether ftpd is listening on the correct port:

netstat -l | grep ftp

The output should show ftpd listening on port 21 (standard ftp port)


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »