Linux cannot connect through FTP mode, but can connect through SFTP mode

Quoted from: http://jingyan.baidu.com/article/676629974e67cb54d51b84ea.html

What should I do if I fail to connect to the linux server using the ftp client? Generally, the following two situations are often encountered when it is not connected:)

Case 1: The server does not open the ftp service

  1. 1

     Phenomenon: An unknown error is displayed when using the ftp client to log in

     

    What should I do if ftp cannot connect to the linux server (Red Hat rhel, etc.)
  2. 2

     Reason: ftp service is not enabled, you can use the command chkconfig to view

     

    What should I do if ftp cannot connect to the linux server (Red Hat rhel, etc.)
  3. 3

     Solution: Use the command service to start the ftp service

     

    What should I do if ftp cannot connect to the linux server (Red Hat rhel, etc.)
    END

Case 2: Insufficient permissions

  1.  

     Phenomenon: No permission to enter the specified directory

     

    What should I do if ftp cannot connect to the linux server (Red Hat rhel, etc.)
  2.  

     Reason: permission setting problem, use the command getsebool to view (need to execute with root permission)

    You can see that the switch is off

    What should I do if ftp cannot connect to the linux server (Red Hat rhel, etc.)
  3.  

     Solution: Turn on the permission setting switch and use the command setsebool (need to execute with root permission)

     

     

    What should I do if ftp cannot connect to the linux server (Red Hat rhel, etc.)
  4.  

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326714136&siteId=291194637