1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

I can't FTP to my site. I can only SFTP.

Discussion in 'Plesk 11.x for Linux' started by NoelWxxx, Aug 31, 2012.

  1. NoelWxxx

    NoelWxxx New Pleskian

    10
    85%
    Joined:
    Aug 31, 2012
    Messages:
    24
    Likes Received:
    0
    I can't FTP to my site (I am using IP address only). I can only SFTP, do you know a probably cause of that?
    I guess this is to do with some sort of setting within the Plesk 11.0.9 panel that I can't find?
     
  2. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    What does your FTP log show when you try opening ftp connections? BTW: Do you use FileZilla, or a Web-based FTP client like www.JolisFTP.com ?
     
  3. NoelWxxx

    NoelWxxx New Pleskian

    10
    85%
    Joined:
    Aug 31, 2012
    Messages:
    24
    Likes Received:
    0
    I use CoffeeCup Direct FTP.
    It states: There was a problem connecting to your host or proxy. Please check your server settings and try again. If you are sure you have entered the correct information, please contact your network administrator or the server administrator. [7] Additional information: couldn't connect to host.
     
  4. Faris Raouf

    Faris Raouf Silver Pleskian Plesk Guru

    31
    30%
    Joined:
    Mar 15, 2009
    Messages:
    667
    Likes Received:
    17
    It could be something as simple as the firewall. That's probably the first thing I'd check.

    You can use telnet to test if you can access your server on port 21:

    Code:
    telnet hostname 21
    This will connect to port 21 on hostname (or you can use an IP address of ftp.domain.tld or whatever).

    You'll see something like this:

    Code:
    # telnet hostname 21
    Trying [ip address of host]...
    Connected to hostname (ip address).
    Escape character is '^]'.
    220 ProFTPD 1.3.4a Server (ProFTPD) [ip address]

    NOTE: telnet is not installed by default in Windows 7. You need to install it via the Control Panel.. I forget what, but it something related to additional programs or something like that.
     
  5. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
  6. NoelWxxx

    NoelWxxx New Pleskian

    10
    85%
    Joined:
    Aug 31, 2012
    Messages:
    24
    Likes Received:
    0
    I tried net2ftp.com and it did not work. I did have a colleague try from his location before that so it isn't a firewall blocking it on my PC. This was the net2ftp.com message:

    An error has occured
    Unable to connect to FTP server xx.xx.xxx.200 on port 21.

    Are you sure this is the address of the FTP server? This is often different from that of the HTTP (web) server. Please contact your ISP helpdesk or system administrator for help.
     
  7. NoelWxxx

    NoelWxxx New Pleskian

    10
    85%
    Joined:
    Aug 31, 2012
    Messages:
    24
    Likes Received:
    0
    In the ftp settings in Plesk for the website there is a setting for the FTP account name saying: "Access to the server over SSH."

    There are about 8 alternative options in the drop-down which are:
    forbidden
    /bin/sh
    /bin/bash
    /sbin/nologin
    /bin/tcsh
    /bin/csh
    /bin/bash (chrooted)
    /bin/rbash



    You need to choose one of them. Could this option be a cause or solution to the ftp issue?
     
  8. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    NO, that option has nothing to do with FTP.
    Howabout from SHELL, what response do you get with

    #telnet hostname 21

    and

    #telnet yourdomain.com 21
     
  9. NoelWxxx

    NoelWxxx New Pleskian

    10
    85%
    Joined:
    Aug 31, 2012
    Messages:
    24
    Likes Received:
    0
    I did a telnet to the IP address in this format: xx.xxx.xxx.xxx [21]

    The response was: Could not open connection to the host on port [21]: Connect failed
     
  10. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    What do you get when you do:

    telnet localhost 21

    On your SHELL
     
  11. NoelWxxx

    NoelWxxx New Pleskian

    10
    85%
    Joined:
    Aug 31, 2012
    Messages:
    24
    Likes Received:
    0
    I may be doing it wrong. I am logging into the server via putty and putting that instruction and I just get: command not found
     
  12. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    You can install telnet if its not existent on your server with

    yum install telnet
     
  13. NoelWxxx

    NoelWxxx New Pleskian

    10
    85%
    Joined:
    Aug 31, 2012
    Messages:
    24
    Likes Received:
    0
    OK I did that and got this response:


    Trying ::1...
    Connected to localhost.
    Escape character is '^]'.
    220 ProFTPD 1.3.4a Server (ProFTPD) [::1]
     
  14. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    What is your response by:

    cat /etc/hosts
     
  15. NoelWxxx

    NoelWxxx New Pleskian

    10
    85%
    Joined:
    Aug 31, 2012
    Messages:
    24
    Likes Received:
    0
    This is the response to cat /etc/hosts (I inserted the xxxx to cover part of server name & address):



    127.0.0.1 wilsxxxx.xxxxxservers.com wilsxxxx localhost.local domain localhost.localdomain localhost4 localhost4.localdomain4 localhost
    ::1 wilsxxxx.xxxxxservers.com wilsxxxx localhost.localdomain l ocalhost.localdomain localhost6 localhost6.localdomain6 localhost
    [root@wilsxxxx ~]#
     
  16. NoelWxxx

    NoelWxxx New Pleskian

    10
    85%
    Joined:
    Aug 31, 2012
    Messages:
    24
    Likes Received:
    0
    Problem solved: my hosting company took a look at it and turned off the firewall on my server and that allowed FTP. Many thanks for your help on this thread.
     
Loading...