0

When connecting by ftp to example.com, it fails before prompting for password for a longer string:

user@client:~> ftp example.com
Connected to example.com.
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 2 of 50 allowed.
220-Local time is now 17:56. Server port: 21.
220-This is a private system - No anonymous login
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
Name (client:username): ftpusername@example.com
421 Service not available, remote server has closed connection.
ftp: Login failed.

But if I try to login with a smaller string:

user@client:~> ftp example.com
Connected to example.com.
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 2 of 50 allowed.
220-Local time is now 17:58. Server port: 21.
220-This is a private system - No anonymous login
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
Name (client:username): f@example.com
331 User f@example.com OK. Password required
Password:

What can be wrong here?

11
  • HTTP 421 means Misdirected Request. It looks like your server is not configured to accept logins from ftpusername. – Ultrasonic54321 Mar 12 '18 at 17:17
  • But this is a FTP connection, not a HTTP one. – catalin Mar 12 '18 at 18:13
  • While you are right that @Ultrasonic54321 is totally wrong with the reference to HTTP, the root cause is probably the same. Do you have any reason to believe you should be able to login with ftpusername@example.com? Can you login with that account using any FTP client whatsoever? – Martin Prikryl Mar 12 '18 at 19:19
  • Well, I don’t know. But if I type a short string like bebe@example.com, or vzxw@example.com, or whatever, it prompts me for the password. It looks like the username string should be smaller – catalin Mar 12 '18 at 19:22
  • So what is your question? Are you asking us what your username should be like? – Martin Prikryl Mar 13 '18 at 6:43

Your Answer

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

Browse other questions tagged or ask your own question.