Login failed on using ftp

I have started the server using sudo ./vsftpd_v1 vsftpd_v1.conf in one terminal and In another terminal When I am running this ftp 13.232.15.158 8081 I am getting login failed. Unable to get why this is happening tried available solution but didn’t worked.

Connected to 13.232.15.158.
220 (vsFTPd 3.0.3)
Name (13.232.15.158:crio-user): 
Login failed.
ftp>

Please use localhost i.e. 127.0.0.1 if you are connecting from a local client.
The other IP you are using is a external public IP which is not known internally.

I have tried, it is throwing 500 OOPS: 421 Service not available, remote server has closed connection

crio-user@govinddixit93:~/workspace/ftp_client$ ftp 127.0.0.1 8081
Connected to 127.0.0.1.
220 (vsFTPd 3.0.3)
Name (127.0.0.1:crio-user): crio-user
331 Please specify the password.
Password:
500 OOPS: 421 Service not available, remote server has closed connection
Login failed.
No control connection for command: Success
ftp> 

The service is running (Output of command ps -ef)

root 4698 4622 0 11:30 pts/0 00:00:00 sudo ./vsftpd_v1 vsftpd_v1.conf
root 4699 4698 0 11:30 pts/0 00:00:00 ./vsftpd_v1 vsftpd_v1.conf
crio-us+ 4700 4603 0 11:30 pts/1 00:00:00 /bin/bash
crio-us+ 4770 4700 0 11:34 pts/1 00:00:00 ftp 127.0.0.1 8081
root 4775 2 0 11:34 ? 00:00:00 [kworker/0:0]

Use 0.0.0.0 as address. You can always use netstat and look for the address of local client using port number

1 Like

Ok It worked Thanks @visargdesai