Reply: 530 Valid hostname is expected. Error: Login refused by server

Mick Dawdy 56 Reputation points
2022-12-29T01:44:38.37+00:00

Looking for help with this response from ftptest.net...
Reply: 530 Valid hostname is expected.
Error: Login refused by server

Following are the details. I think the problem is that this certificate is for my website. Do I need another for my Ftp site?

Status: Resolving address of mickftpsite.com
Status: Connecting to 99.242.126.196
Warning: The entered address does not resolve to an IPv6 address.
Status: Connected, waiting for welcome message...
Reply: 220 Microsoft FTP Service
Command: CLNT https://ftptest.net on behalf of 2607:fea8:2e1d:ba00:11db:c25c:8d91:579f
Reply: 500 Command not understood.
Command: AUTH TLS
Reply: 234 AUTH command ok. Expecting TLS Negotiation.
Status: Performing TLS handshake...
Status: TLS handshake successful, verifying certificate...
Status: Received 2 certificates from server.
Status: cert[0]: subject='CN=mickwebsite.com' issuer='C=US,O=Let\27s Encrypt,CN=R3'
Status: cert[1]: subject='C=US,O=Let\27s Encrypt,CN=R3' issuer='C=US,O=Internet Security Research Group,CN=ISRG Root X1'
Command: USER mickftpsite.com|Mick
Reply: 530 Valid hostname is expected.
Error: Login refused by server

===Off Topic Question>>>

So, where is this mysterious save button that it keeps nagging me about but never shows anywhere!

Windows development Internet Information Services
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Yurong Dai-MSFT 2,846 Reputation points Microsoft External Staff
    2022-12-30T09:28:37.09+00:00

    Hi @Mick Dawdy ,

    FTP error 530 valid hostname is expected is usually thrown when users configure multiple FTP sites on the same IP address. In other words, when multiple websites have the same settings such as IP address, port number, etc., the FTP server cannot determine the exact account for which the user provided the FTP credentials.

    Often times, customers need to host multiple domains on the same IP address. It is therefore recommended that you use a hostname and user combination in the username field of an FTP client such as Filezilla in the format "hostname|user" (symbol | to separate hostname and user).

    For example, suppose a user wants to connect to the FTP host ftp.domain.com with the username test. You should then specify the username as ftp.domain.com|testing. Here, the FTP server can easily recognize that the FTP client is connecting to the host ftp.domain.com using the username test.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the email notification for this thread.

    Best regards,
    Yurong Dai

    2 people found this answer helpful.
    0 comments No comments

  2. Mick Dawdy 56 Reputation points
    2022-12-30T16:11:42.547+00:00

    Thank you for trying, but that is the same answer that I found on a few internet blogs and it does not help.
    It can be very crazy this computer stuff when it comes to technical issues. I've been doing this stuff for more than 50 years and it just gets crazier.
    What fixed this was one of those crazy things. I arbitrarily changed the port from 21 to 22 then back to 21. After restarting the error went away. Just like that. Gone. Crazy.
    Thank you,
    Mick


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.