0

I am able to ftp into my server, but when log on via ssh and do ftp localhost, I receive the message ftp> ftp: connect: Connection refused. I think I need it to ftp to itself for wordpress. Is this a firewall issue? How can I diagnose it?

4
  • What is the "it" in "it cannot ftp to itself"? I don't understand the problem?
    – Oli
    Mar 28, 2014 at 13:48
  • I believe you will get more help going to stackoverflow or superuser. It is not a special question for askubuntu.
    – HongboZhu
    Mar 28, 2014 at 13:48
  • @HongboZhu ah, I didn't know if my problem was system specific, related to the firewall Ubuntu uses, or something to do with the specific distro I'm using
    – JFA
    Mar 28, 2014 at 14:00
  • After searching the documents for several hours, I've come to the conclusion that Ubuntu is not supposed to ship with an FTP and so I have no idea what fpt program I'm using. I just followed the same tutorial in byaruhaf's comment, and that made it run, so as long as it's working, I don't want to spend any more time at work on it.
    – JFA
    Mar 28, 2014 at 17:25

1 Answer 1

1

You should can try sftp, but if you need ftp then you need to setup and ftp server

  • vsftpd is an FTP daemon available in Ubuntu. It is easy to install, set up, and maintain. To install vsftpd you can run the following command:

sudo apt-get install vsftpd

Click here for more details on FTP Server setup

4
  • If I'm able to already ftp in to my server, does that mean I've already set it up correctly, or do I need to change something?
    – JFA
    Mar 28, 2014 at 14:39
  • if you can already ftp in to the server it means its setup correctly. have you tried sftp.
    – byaruhaf
    Mar 28, 2014 at 14:54
  • sftp does work, I'm able to start a connection that way. Why can I do one and not the other?
    – JFA
    Mar 28, 2014 at 15:36
  • Outside their similar names and interactive user interfaces, there is no relationship between ftp and sftp. sftp is actually ssh based rather than ftp, for example, WinSCP uses SFTP as it's default transfer method. This means if you can SSH to a node, you can SFTP files to/from it. I'm also not a ftp expert, but I believe You need to configure the FTP server. Most admins disable ftp because ftp transmits your password in the clear.
    – byaruhaf
    Mar 28, 2014 at 18:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.