Solution to the 530 error of FTP connection in Linux

Source: Internet
Author: User
Tags ftp commands ftp connection

This problem often occurs at work. When you log on to a Linux server using FTP commands on Windows, the following message is displayed: 530 must perform authentication before identifying user. After searching online, I finally found a solution. First of all, thanks to the experts who provide the solution. I have used this record for reference only. Currently, I know the solution is as follows:

First, if you are using vsftpd, stop it with the command: Service vsftpd stop. Then you need to edit the gssftp configuration file under/etc/xinetd. d/. The file content is as follows:

# Default: Off
# Description: The specified FTP Server accepts FTP connections
# That can be authenticated with Kerberos 5.
Service ftp
{
Disable = Yes
Flags = Reuse
Socket_type = stream
Wait = No
User = root
Server =/usr/Kerberos/sbin/ftpd
Server_args =-l-
Log_on_failure + = userid
}

In the file, we want to modify the following content:
1. Change disable = yes to disable = No. The default FTP function is invalid. The modification takes effect for the FTP function.
2. Change server_args =-l-A to server_args =-L.

Without-A means: * enable Weak Authentication *

It indicates that the Kerberos 5 authentication mechanism is used, while FTP generally does not support this authentication mechanism.

Save the modification.

3. Restart the xinetd service. Run the following command (/etc/xinetd. d /):

Service xinetd restart

Service vsftpd restart

Note:

1. We recommend that you do not use root for the user (user = root) in the gssftp configuration file. It is best to use other users.

2. in Linux RHEL 5 or later versions, gssftp may not exist. I have not touched it yet.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.